Offline image converter problem

hello all,

i am using this php code for offline image converter

but blue and red swap error . where is the problem ?

i know online tool but i need an offline tool.

i’using this command

php img_conv_core.php “name=button&img=button.png&format=bin_565&cf=true_color_alpha”


What MCU/Processor/Board and compiler are you using?


What LVGL version are you using?


What do you want to achieve?

offline image converter work with rgb565 true_color_alpha

What have you tried so far?

too much

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.

and orjinal image


There is no problem with the image when I convert it with the online tool. but i need offline tool i will integrate it into my project