RSS/Atom feed Twitter
Site is read-only, email is disabled

Converting 24 bit to 16 bit

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

Converting 24 bit to 16 bit Karl Fischer 04 Oct 13:07
  Converting 24 bit to 16 bit Sven Neumann 04 Oct 13:33
Karl Fischer
2004-10-04 13:07:10 UTC (over 19 years ago)

Converting 24 bit to 16 bit

Hi
I'm doing a bootsplash images so I need to convert a 24bit image into 16 bit is there a way of doing this

Thanks

Karl

Sven Neumann
2004-10-04 13:33:49 UTC (over 19 years ago)

Converting 24 bit to 16 bit

Hi,

Karl Fischer writes:

I'm doing a bootsplash images so I need to convert a 24bit image into 16 bit is there a way of doing this

There used to be a GIMP plug-in for doing bootsplash images. Not sure if it creates the output the format that you are looking for.

Otherwise, if you wanted to write a simple plug-in for this, doing the conversion is simple, just call this for every pixel:

#define PIXEL_RGB16(r,g,b) ((((r) & 0xF8) << 8) | \ (((g) & 0xFC) << 3) | \ (((b) & 0xF8) >> 3))

This assumes that 16bit means RGB565 (5 bits red, 6 bits green, 5 bits blue), but that's typically what it means.

Sven