🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    PNG and JPG formats: unsupported image type

    UIFlow
    2
    5
    5.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      csongor.varga
      last edited by

      Hi All,

      I am really struggling with using imaged. It feels like it is a hit and miss every time. The UI edit shows the image, and when I upload the flow, I get an unsupported image type error. For example I wanted a background image, I tried JPG, PNG and none is accepted. Also used some PNG weather icons, and some are accepted, some are not.

      I feel like it is impossible to tell which one will work and which will not. Maybe a validator in the UIFlow app would be useful.

      I am using Paint.Net to convert me images. JPG export only has a Quality and a Chrome Subsampling option which I leave in 4:2:2.

      PNG export a bit depth and a few other parameters which are used for downsampling the image.

      Any recommendations are welcome.

      Regards,
      Csongor

      1 Reply Last reply Reply Quote 0
      • ajb2k3A
        ajb2k3
        last edited by

        I use GIMP to edit my images and a guide can be found in my WIP book found here : https://github.com/Ajb2k3/UIFlowHandbook/blob/master/quickblockref.pdf

        UIFlow, so easy an adult can learn it!
        If I don't know it, be patient!
        I've ether not learned it or am too drunk to remember it!
        Author of the WIP UIFlow Handbook!
        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

        C 2 Replies Last reply Reply Quote 1
        • C
          csongor.varga @ajb2k3
          last edited by

          @ajb2k3 Thanks, let me give it a try.

          1 Reply Last reply Reply Quote 0
          • C
            csongor.varga @ajb2k3
            last edited by

            @ajb2k3 The reason I wanted to use PNG is to use the transparency information of PNG format. Is that possible at all?
            I guess it is not possible with either BMP and JPG.

            ajb2k3A 1 Reply Last reply Reply Quote 0
            • ajb2k3A
              ajb2k3 @csongor.varga
              last edited by

              @csongor-varga Unfortunately transparency doesn't look to be implemented in MicroPython yet.

              UIFlow, so easy an adult can learn it!
              If I don't know it, be patient!
              I've ether not learned it or am too drunk to remember it!
              Author of the WIP UIFlow Handbook!
              M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

              1 Reply Last reply Reply Quote 0
              • First post
                Last post