# Why the const image array needs many times RO-data space?

**URL:** <http://forum.squareline.io/t/why-the-const-image-array-needs-many-times-ro-data-space/619>\
**Category:** How to\
**Created:** [November 28, 2022, 2:05pm UTC](http://forum.squareline.io/t/why-the-const-image-array-needs-many-times-ro-data-space/619 "2022-11-28T14:05:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shili](http://forum.squareline.io/letter_avatar_proxy/v4/letter/s/e56c9b/32.png) [@shili](http://forum.squareline.io/u/shili)\
**Post date:** [November 28, 2022, 2:05pm UTC](http://forum.squareline.io/t/why-the-const-image-array-needs-many-times-ro-data-space/619/1 "2022-11-28T14:05:36Z")

</div>

### What do you want to achieve?

use the const image array

### What have you tried so far?

A 5kb const image array is generated by SquareLine Studio, and set “lv\_img\_set\_src(ui\_aimg, &ui\_img\_a\_png);”  
After compile it in Keil. I found the RO-data size will increase 21Kb.

### Screenshot or video

### Others

- **SquareLine Studio version:**
- **Operating system:**
- **Target hardware:**

---

<div class="post-metadata">

**Author:** ![kisvegabor](http://forum.squareline.io/user_avatar/forum.squareline.io/kisvegabor/32/537_2.png) [@kisvegabor](http://forum.squareline.io/u/kisvegabor)\
**Post date:** [December 8, 2022, 8:23am UTC](http://forum.squareline.io/t/why-the-const-image-array-needs-many-times-ro-data-space/619/2 "2022-12-08T08:23:06Z")

</div>

It’s because SquareLine decompresses the image to a raw pixel map and not converts the PNG as it is.
