# Can't get images to not be inverted

**URL:** <http://forum.squareline.io/t/cant-get-images-to-not-be-inverted/446>\
**Category:** How to\
**Created:** [September 19, 2022, 12:36pm UTC](http://forum.squareline.io/t/cant-get-images-to-not-be-inverted/446 "2022-09-19T12:36:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcuseide](http://forum.squareline.io/user_avatar/forum.squareline.io/marcuseide/32/228_2.png) [@marcuseide](http://forum.squareline.io/u/marcuseide)\
**Post date:** [September 19, 2022, 12:36pm UTC](http://forum.squareline.io/t/cant-get-images-to-not-be-inverted/446/1 "2022-09-19T12:36:59Z")

</div>

### What do you want to achieve?

I want to use images for my GUI created with SquareLine, but they won’t show in normal colors, they only show in inverted colors. All other components that I have tried act as expected (text, buttons, sliders etc.), so I guess the screen settings are valid, but I must be doing something wrong.

### What have you tried so far?

Changing these parameters:  
#define LV\_COLOR\_DEPTH 16  
#define LV\_COLOR\_16\_SWAP 0  
#define LV\_USE\_THEME\_MONO 0

to

#define LV\_COLOR\_DEPTH 32  
#define LV\_COLOR\_16\_SWAP 1  
#define LV\_USE\_THEME\_MONO 0

but with no luck in any combination.

### Screenshot or video

N/A

### Others

- **SquareLine Studio version:**  
1.1.0
- **Operating system:**  
|Distributor ID:|Ubuntu|  
|—|—|  
|Description:|Ubuntu 20.04.5 LTS|  
|Release:|20.04|  
|Codename:|focal|
- **Target hardware:**  
WT32-SC01 dev kit

---

<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:** [September 20, 2022, 7:26am UTC](http://forum.squareline.io/t/cant-get-images-to-not-be-inverted/446/2 "2022-09-20T07:26:47Z")

</div>

You should keep `LV_COLOR_16_SWAP` and `LV_COLOR_DEPTH` in sync with you HW config and SLS color settings.

Were the non-image colors good with

```auto
#define LV_COLOR_DEPTH 16
#define LV_COLOR_16_SWAP 0

```

settings?

If so, probably in SLS in File-\>Project settings the Color depth is set incorrectly.

---

<div class="post-metadata">

**Author:** ![marcuseide](http://forum.squareline.io/user_avatar/forum.squareline.io/marcuseide/32/228_2.png) [@marcuseide](http://forum.squareline.io/u/marcuseide)\
**Post date:** [September 20, 2022, 9:33am UTC](http://forum.squareline.io/t/cant-get-images-to-not-be-inverted/446/3 "2022-09-20T09:33:02Z")

</div>

Yeah, I have tried that. I assume “color\_depth”: “16 sw”, in the SLB (not SLS?) file is supposed to mean color depth 16bit and sw for swap? The non-image color were good with all the settings i tried, so that seems a bit odd as well…

Do you know if SquareLine is ok with png files for images? I thought maybe there could be something wrong with the image file type or something along those lines?

---

<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:** [September 22, 2022, 12:37pm UTC](http://forum.squareline.io/t/cant-get-images-to-not-be-inverted/446/4 "2022-09-22T12:37:34Z")

</div>

> [@marcuseide](#):
>
> Yeah, I have tried that. I assume “color\_depth”: “16 sw”, in the SLB (not SLS?)

I meant in SLS, in Project settings. Do you use a custom board or a built in board?

> [@marcuseide](#):
>
> Do you know if SquareLine is ok with png files for images? I thought maybe there could be something wrong with the image file type or something along those lines?

PNG should be fine. We have never seen png types that weren’t supported.

Anyway, please send a screenshot about your current settings and a photo about the result on the target hardware.

---

<div class="post-metadata">

**Author:** ![marcuseide](http://forum.squareline.io/user_avatar/forum.squareline.io/marcuseide/32/228_2.png) [@marcuseide](http://forum.squareline.io/u/marcuseide)\
**Post date:** [September 26, 2022, 7:08am UTC](http://forum.squareline.io/t/cant-get-images-to-not-be-inverted/446/5 "2022-09-26T07:08:19Z")

</div>

Ah, I see. I added my own custom board. We might be transitioning to a new board, so I have not done any more work on this board yet, but I’ll let you know if I run into more trouble. I will also provide images of my settings of course. Thank you for your input so far!

Marcus
