What is a JPEG?

Hi

I'm trying to understand how a JPEG file can hold 256 colours from a larger 16.7 million colour palette. I can see how indexing might help, where each pixel is defined by an index reference, but this means that an index table must be stored somewhere. This index can't be in the JPEG file itself, otherwise the file would be too big. But if the table is not in the file, then how does it know which 256 colours to use? May be I'm totally wrong.

Finally, is it true that a JPEG supports 8-bit alpha channel information?
LVL 11
Jason210Asked:
Who is Participating?
 
kalmorahCommented:
http://www.faqs.org/faqs/jpeg-faq/part1/ questions 8 and 12 might help you.

Basically, jpeg is a 24-bit format and does not have any such index table.

There is no 8-bit alpha channel in the jpeg format either, as jpeg does not support transparancy
0
 
Jason210Author Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.