adafruit / circuitpython

CircuitPython - a Python implementation for teaching coding with microcontrollers
https://circuitpython.org
Other
4.09k stars 1.21k forks source link

displayio.OnDiskBitmap shows corrupted image when using a compressed BMP #7450

Open Breazile opened 1 year ago

Breazile commented 1 year ago

CircuitPython version

Adafruit CircuitPython 8.0.0-beta.6 on 2022-12-21; Adafruit Feather ESP32S3 4MB Flash 2MB PSRAM with ESP32S3
Board ID:adafruit_feather_esp32s3_4mbflash_2mbpsram

Code/REPL

displayio.OnDiskBitmap("compressed.bmp")

Behavior

The system displays an image, but it is corrupted and looks like it is not using the proper scan line width or something. I see the right colors, but displayed incorrectly

Description

I have tried making a compressed BMP in many ways from Photoshop to other image editors. Removing compression works fine, but I have not found any compressed BMP that will draw properly.

I have tried on a Feather M4 Express as well as a Feather ESP32S3 on the 1.14" LCD display as well as the 1.3" LCD display.

Additional information

No response

tannewt commented 1 year ago

We don't support compressed BMPs with OnDiskBitmap. We'd need to add support.