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

    Display PNG images?

    Cores
    2
    2
    5.4k
    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.
    • M
      m5er
      last edited by

      The M5Stack can display JPG images (compressed, lossy) and BMP images (uncompressed). BMP is a rather archaic format, so I was wondering if the M5Stack can display the more modern PNG format (compressed, lossless)?

      Alternatively, how can I use the drawBitmap function starting from a PNG image? I need the process to be automated, so using 3rd party conversion apps is not an option. The conversion (PNG -> bitmap data that the M5Stack can display) can be performed either on the M5Stack or on my external server using Node.js. Raise your hand if you know how it can be done :)

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

        Currently there is no support for png images in the micropython port that form the firmware of the m5Stack range.
        BMP is its raw uncompressed state is a simple file to translate along with base level jpg (not JPEG!)
        Until such time that a codec exist for micropython, we are all stuck with converting graphics into base level formats.

        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