reduce image color depth (24 to 8 )
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sunny_sunny
Posted On:   Thursday, February 10, 2005 05:04 PM

I need to modify different images (JPEG, GIF, PNG, TIFF) to reduce the color depth to lower level from 24 to 8 bit. I thought, JAI would help but could not figure out how to use it for reducing color depth. Also what does it mean if image is 24 bit. (R-8, G-8, B-8) then how to distribute RGB colors for 8 bit image.

Re: reduce image color depth (24 to 8 )

Posted By:   Reza_Nazarian  
Posted On:   Thursday, March 24, 2005 09:42 AM

An 8-bit color-image usually works with a so-called look-up table or a palette. In case of an 8-bit color-depth there are 256 selected rgb-colors in the palette. For example, color #13 may be R:64, G:255, B:128.

Not all formats support a palette. JPEG doesn't. GIF (max. ColorDepth is 8bit), PNG and TIFF do.

An 8-bit grey-image consists of 256 linear grey-levels (0-255).

Re: reduce image color depth (24 to 8 )

Posted By:   Christopher_Koenigsberg  
Posted On:   Saturday, February 12, 2005 03:27 PM

...if image is 24 bit. (R-8, G-8, B-8) then how to distribute RGB colors for 8 bit image...


Exactly. Let us know what you figure out, after you do your experimenting!

About | Sitemap | Contact