-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
some Indexed BMP Images look corrupted #8734
Comments
Could you please include the Also maybe include a file that is working. If you have more than one which looks wrong, include that too. |
Ok I will edit the post |
BTW, |
[removed by @dhalbert due to size] |
I reproduced your problem on a single panel with the Matrix Portal S3 (I can't find my Matrix Portal M4 at the moment). I saw a similarly corrupted image. However, when I read the file into GIMP and then export it as .bmp again, with no changes, it displays properly: |
I tested with 8.2.9 and 9.0.0-alpha.6: no difference. BTW, you can also use the |
This is also helpful: https://www.metadata2go.com/. Note that the size is 946 for NYJ.bmp, and it's RLE, and NYJ1.bmp is None, and the size is 1024. It seems like there's a misinterpretation of RLE for some reason for these files. Did you make them exactly according to the recipe in the scoreboard guide? |
OK, this looks like #7450, which reports the same thing. We should complain about compressed files but we're not checking carefully enough. |
Thank you. Is there a way to decompress the images in python/bash. I have a lot of image that need to be decompressed. |
On the command line: |
Thank you. |
CircuitPython version
Code/REPL
Behavior
Images look corrupted / weird (look at uploaded file)
Description
Only happens with some bitmap files. Maybe because the bitmaps palette index 0 is while and 255 is black?
Additional information
I was messing around with my own build of circuit python and discovered that it looks like `displayio_convert_color' treats the color as a rgb332 color because colorspace.depth is 8 right. Or would it be 24.
I have 4 displays running and the code is running as a .mpy file from a sd card
Here is the bmp I used.
NYJ.bmp.zip
Here is all the bmp files that don't work
Bitmaps.zip
And this bitmap works
wales.bmp.zip
The text was updated successfully, but these errors were encountered: