# How does SLS convert 24 or 32-bit color image to 16-bit?

**URL:** <http://forum.squareline.io/t/how-does-sls-convert-24-or-32-bit-color-image-to-16-bit/5763>\
**Category:** How to\
**Created:** [March 24, 2025, 3:32am UTC](http://forum.squareline.io/t/how-does-sls-convert-24-or-32-bit-color-image-to-16-bit/5763 "2025-03-24T03:32:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![split](http://forum.squareline.io/letter_avatar_proxy/v4/letter/s/c2a13f/32.png) [@split](http://forum.squareline.io/u/split)\
**Post date:** [March 24, 2025, 3:32am UTC](http://forum.squareline.io/t/how-does-sls-convert-24-or-32-bit-color-image-to-16-bit/5763/1 "2025-03-24T03:32:26Z")

</div>

When converting an RGB888 image to RGB565, there are two methods used.  
One simply shifts the unused bits of the color lane off. For example, for Red, there are only 5 bits, so the least significant 3 bits are shifted off into oblivion.  
Red8\>\>3 = Red5

The proper and more accurate method is as follows:  
(Red8/255)\*31 = Red5 (5bits gives 32 color levels)

I’m not sure if you can really see the difference, but curious which method SLS uses
