How to compress and decompress an image

I have numerous image files stored as a c_array in the project, occupying a substantial amount of memory space. Now, I am looking to compress them, similar to a zip file, and store them in internal memory, such as flash. When the screen is drawn, I intend to read the compressed files from flash, decompress them, and display. Does the LVGL library include functions for image compression and decompression?

Where you decompress? For this you require RAM. And yes lvgl support image formats decode , not directly zip but i mean better and simpler png jpg … read docu