# Imported images (assets) don't work at runtime (v1.6.3)

**URL:** <http://forum.squareline.io/t/imported-images-assets-dont-work-at-runtime-v1-6-3/6506>\
**Category:** Bugs\
**Created:** [November 15, 2026, 10:33am UTC](http://forum.squareline.io/t/imported-images-assets-dont-work-at-runtime-v1-6-3/6506 "2026-11-15T10:33:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Digitix](http://forum.squareline.io/letter_avatar_proxy/v4/letter/d/779978/32.png) [@Digitix](http://forum.squareline.io/u/Digitix)\
**Post date:** [November 15, 2026, 10:33am UTC](http://forum.squareline.io/t/imported-images-assets-dont-work-at-runtime-v1-6-3/6506/1 "2026-11-15T10:33:25Z")

</div>

Hello

I think there is an issue with the image imports (assets) of SquareLine Studio version 1.6.3, because I hadn’t that problem with a previous version of SqaureLine Studio with the same project.

I imported a 32bit + transparency PNG image file and I got this descriptor for it:

`const lv_image_dsc_t ui_img_logo_e_t_a___2_png = {`  
`.header.cf = LV_COLOR_FORMAT_I8,`  
`.header.magic = LV_IMAGE_HEADER_MAGIC,`  
`.header.w = 421,`  
`.header.h = 141,`  
`.data_size = 60385,`  
`.data = ui_img_logo_e_t_a___2_png_map,`  
`};`

The output file size is 356KB.

Problem?

The image doesn’t show up at runtime on my ESP32-P4, although it’s shown on Squareline Studio.  
The same happen with a second image. All the others are ok.  
I compared the .c file of the same image I have created with a previous version of SqaureLine Studio.  
The descriptor is surprisingly different:

`const lv_image_dsc_t ui_img_logo_e_t_a___2_png = {`  
`.header.w = 421,`  
`.header.h = 141,`  
`.data_size = sizeof(ui_img_logo_e_t_a___2_png_data),`  
`.header.cf = LV_COLOR_FORMAT_NATIVE_WITH_ALPHA,`  
`.header.magic = LV_IMAGE_HEADER_MAGIC,`  
`.data = ui_img_logo_e_t_a___2_png_data`  
`};`

The output file size is 880KB.

And this one work!

So, I don’t know where the bug actually is. I don’t know why it happens to some images and others not. But it’s very annoying.

### What do you want to achieve?

Display an image from my assets.

### What have you tried so far?

I have tried to re-import the image file, but it still doesn’t show up on my ESP32-P4.

### Screenshot or video

 ![1](http://forum.squareline.io/uploads/default/original/2X/9/9f658450891b106df52a2dea31ccdae87f0f3654.png)

 ![2](http://forum.squareline.io/uploads/default/original/2X/a/a9b1367564cc3f75d1246759157362f59151f663.png)

### Others

- **SquareLine Studio version: 1.6.3 + lvgl v9.6**
- **Operating system: Windows 11**
- **Target hardware: ESP32-P4 (v3.2) + 10.1 inch LCD**

---

<div class="post-metadata">

**Author:** ![Richard](http://forum.squareline.io/user_avatar/forum.squareline.io/richard/32/1129_2.png) [@Richard](http://forum.squareline.io/u/Richard)\
**Post date:** [November 16, 2026, 5:22pm UTC](http://forum.squareline.io/t/imported-images-assets-dont-work-at-runtime-v1-6-3/6506/2 "2026-11-16T17:22:57Z")

</div>

The source image must have \<=256 colors in the target hardware format. You can tell SquareLine to skip this optimization under project-settings, but you likely are missing color format support to render LVGL I8 → display-color on your device. Are you using the P4 PPA or software LVGL rendering?

![image](http://forum.squareline.io/uploads/default/original/2X/d/d9fc45bfdcb98e7ee5a95d5fd878841fdd18c8cb.png)

EDIT: I’m not from SquareLine, just familiar with image conversion

---

<div class="post-metadata">

**Author:** ![SquareLine\_Support](http://forum.squareline.io/user_avatar/forum.squareline.io/squareline_support/32/47_2.png) [@SquareLine\_Support](http://forum.squareline.io/u/SquareLine_Support)\
**Post date:** [November 17, 2026, 11:55am UTC](http://forum.squareline.io/t/imported-images-assets-dont-work-at-runtime-v1-6-3/6506/3 "2026-11-17T11:55:14Z")

</div>

Hi Digitix,

Thanks for the detailed report, and thanks Richard for pointing in the right direction.

Your image data is fine. The “Optimize image formats in C source export” option (Project Settings) picks the smallest lossless format for each image. It’s switched on for older projects when you open them in 1.6.3. Your logo has no more than 256 colors, so it was exported as LV\_COLOR\_FORMAT\_I8, which is why the file got smaller.

LVGL’s software renderer can’t draw I8 images directly. With LV\_BIN\_DECODER\_RAM\_LOAD 1, it converts the whole image to ARGB8888 in RAM: about 232 KB for 421×141. If LVGL’s heap is smaller (the default LV\_MEM\_SIZE is 64 KB), the image isn’t drawn, and the log shows No memory for indexed image. The old RGB565A8 export was drawn straight from flash and needed no RAM.

How to fix it:

Uncheck “Optimize image formats in C source export” and export again. You’ll get the same output as with the previous version.  
Or keep I8 and set LV\_BIN\_DECODER\_RAM\_LOAD 0, so images are converted line by line while drawing.  
Or give LVGL more heap, e.g. LV\_USE\_STDLIB\_MALLOC LV\_STDLIB\_CLIB with PSRAM enabled for malloc.

If none of these helps, please post your lv\_conf.h (or sdkconfig) and the LVGL log.

---

<div class="post-metadata">

**Author:** ![Digitix](http://forum.squareline.io/letter_avatar_proxy/v4/letter/d/779978/32.png) [@Digitix](http://forum.squareline.io/u/Digitix)\
**Post date:** [November 19, 2026, 9:46am UTC](http://forum.squareline.io/t/imported-images-assets-dont-work-at-runtime-v1-6-3/6506/4 "2026-11-19T09:46:18Z")

</div>

> [@SquareLine\_Support](#):
>
> “Optimize image formats in C source export”

Hello

Indeed this option was checked.

Everything works now.

Thank you very much.
