in reply to How to keep Imager's image files small ?
My thoughts were to make it a simple 16 colors (not 16 bits) images
In general, there are no such things as 16-color images.
The closest you'll get is palettised images which use 8 bits per index (3-bits each for red & green and 2-bits for blue) giving a 256 colors in total.
Of course, you do not need to use all 256 palette entries. If you only use 16 colors, then the size of the palette stored in the image file will (sometimes) be reduced(*), but the image will still require 1-byte per pixel to store the indexes, so the gain of going below 256 colors is minimal(**).
(*From approximated 4*256=1024 bytes for 256 entries; to 4*16=64 bytes for 16 entries. Not all image tools do this.)
(**There is the possibility that using a palettised .png that only uses 16 colors might compress more easily thereby further reducing the size of the image file.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to keep Imager's image files small ?
by Corion (Patriarch) on Jul 27, 2012 at 20:38 UTC | |
by BrowserUk (Patriarch) on Jul 27, 2012 at 20:48 UTC | |
by tonyc (Hermit) on Jul 28, 2012 at 00:03 UTC | |
by BrowserUk (Patriarch) on Jul 28, 2012 at 00:33 UTC | |
by tonyc (Hermit) on Jul 28, 2012 at 01:12 UTC |