2020-12-10 05:47 AM
I have an image (white with alpha). My configuration is as follows:
Opaque Img Format: L8_RGB888
Non Opaque Img Format: L8_ARGB8888
When generating code follwing error message appears:
ERROR: Error: L8_ARGB8888 image assets/images/logo.png has too many colors for palette. Consider using ARGB8888.
Why does this error message disappear when I change the settings for the Opaque image format to RGB565?
The said image (image_logo.cpp) is generated without issues.
KEEP extern const unsigned char image_logo[] LOCATION_ATTRIBUTE("ExtFlashSection") = // 223x44 L8_ARGB8888 pixels.
Is this some sort of a bug or do I have some misunderstandings?
Thanks for your help.
2020-12-10 07:48 AM
Maybe bug in config window, opaque and non opaque is swapped. But this is only default for inserted images. Every image have own setup in images manager.
L8 is pallete formats and accept as you know only 256 different 24 bit or 32bit colors per image.
And right way to manage is set defaults in config as you have, and when special image exist chonge setup only for this image or use convertor software to reduce colour.
2020-12-14 02:28 AM
@Martin KJELDSEN any hints?
2020-12-14 06:09 AM
I'll take a look at it tomorrow
2021-01-03 11:30 PM
Hi @Martin KJELDSEN
did you by any chance have time to look at this?