Why my 200kB .PNG picture gets converted to 5mB in Squareline studio

Hi All,

Is there a way that we can reduce the size of the picture that is uploaded as a asset in Squareline Studio? Why the size of the file uploaded as a KB size gets converted to mB in Squareline studio. I uploaded a 800 x 480 pixel picture and using it as a 800x480 pixel picture in Squaline studio.
Thanks.

Why not? Minimum native is 800x480xbytes per pixel…

A few thoughts:

  1. PNGs are compressed, so PNG filesize isn’t directly related to resolution.
  2. LVGL images are uncompressed, but SquareLine always exports RGB or RGBA images, so LVGL image size will be width * height * bytes(which depend on output/export screen color setting).
  3. If you don’t need top-quality, sometimes you can use a lower-resolution image and use the scale-setting.
  4. You might try breaking up the UI into several small widgets and filling in the background programmatically(unless you mean something like a large background image, would need to see it)