PNG to BMP on Adafruit Matrix Portal M4
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- kyoto5
- Posts: 1
- Joined: Thu Jun 30, 2022 7:02 am
PNG to BMP on Adafruit Matrix Portal M4
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?
- dastels
- Posts: 15817
- Joined: Tue Oct 20, 2015 3:22 pm
Re: PNG to BMP on Adafruit Matrix Portal M4
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
Dave
Please be positive and constructive with your questions and comments.