[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: images in php4

On Tue, 10 Apr 2001, Sudhakar Chandra wrote:

 |What are indexed images?

GIF's PNG etc are indexed images... they have a fixed number of colors
which is stores in a color table(palette).. and then the image is rendered
using the index number for the colors in the table/palette (so if you have
a 256 color image each pixel is represented by a single number from 0-255
(1byte)as opposed to RGB (3bytes)

thereby allowing for smaller images. (smaller size at a loss of number of

Jpegs on the other hand work on nearer/closer colors... and store info
something like... draw one red pixel and then draw another 20 of them...
draw a blue pixel and draw another 5 of them... so they can store an
endless amount of colors.

This is a very rough explaination and may not be technically accurate

	        .:: Kingsly John                ICQ 14787510 ::.
            .:: Linux 2.4.3 #5 Sun Apr 8 17:10:55 IST 2001 i686 ::.
           `:. Posted to the list on Wed Apr 11 11:33:31 IST 2001 .:'