2021-05-30 08:00 PM
I used ImageMagick to change a image into 256 colors that I want to used L8_RGB565 image.
magick convert ***.png -colors 256 ***_L8.png
But the TouchGFX compiler returned an error :
ERROR: Too many colors (762) for palette. Consider using RGB565.
ERROR: L8_RGB565 image assets/images/***_L8.png has too many colors for palette. Consider using RGB565.
ERROR: Could not generate image data
Has anyone encountered such a problem?
Solved! Go to Solution.
2021-06-02 12:30 PM
I recommend pngnq: quantize png images - Linux Man Pages (1) (systutorials.com)
And for understand when your image is with alpha channel, then exist more combination 256 color and 256 alpha.
2021-05-30 08:03 PM
Compile successfully when used 32-colors image, but the display is too poor.
2021-05-31 02:26 AM
Hi,
Could you share the image you used ? Are you 100% sure it is in a RGB565 format ? (since there is that error message from the Image converter)
/Romain
2021-05-31 07:03 PM
Hi Romain Dieleman,
Glad to receive your reply, I need to used L8_RGB565 format and I uploaded the original image, L8 image, image config and error message.
I used ImageMagick APP to convert to a 256-color image, but TouchGFX prompts that the color of this image is out of range.
2021-06-02 12:30 PM
I recommend pngnq: quantize png images - Linux Man Pages (1) (systutorials.com)
And for understand when your image is with alpha channel, then exist more combination 256 color and 256 alpha.
2021-06-02 06:40 PM
I found a solution to the problem: "Dither Algorithm" drop down choice "No dither".
Thanks for your help, your suggestion reminds me to check the image algorithm.