PNG to BMP on Adafruit Matrix Portal M4

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
kyoto5
 
Posts: 1
Joined: Thu Jun 30, 2022 7:02 am

PNG to BMP on Adafruit Matrix Portal M4

Post by kyoto5 »

I am trying to build a display on a 64x64 Matrix where I get an image for an api and then display it on my matrix. However the matrix can only display a Bitmap and not a png. Based on google the only way I can convert the png to to bmp is by using the PIL library. However, the matrix portal does not contain the the library. Is there anyway for me to download external libraries on the matrix portal or another way for me to convert the png to bmp?

User avatar
dastels
 
Posts: 15659
Joined: Tue Oct 20, 2015 3:22 pm

Re: PNG to BMP on Adafruit Matrix Portal M4

Post by dastels »

Yes, that's what the CIRCUITPY/lib directory is for. Using a module meant for Python3 on a desktop/laptop/server on CircuitPython on a SAMD51 may present a problem wrt the language, support modules, and memory limits. You may be better off setting up a server that will forward the request to get the png, convert it to a BMP as you discuss, and return that bmp to the MatrixPortal.

Dave

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”