Image File Formats
Image File Formats
There are two different types of image file formats: One that can be compressed, and the
other raw. Compression is the reduction of data to reduce file size for storage. Compression
can be "lossy" (such as JPEG) or "lossless" (such as TIFF LZW). Greater reduction is
possible with lossy compression than with lossless schemes.
Lossless compression
Reduces the size of files by creating an internal shorthand that rebuilds the data as it
originally were before the compression. Thus, it is said to be non-destructive to image data
when used.
Lossy compression
A method of reducing image file size by throwing away unneeded data, causing a slight
degradation of image quality. JPEG is a lossy compression method.
Raster / Bitmap
Raster images are made up of individual dots; each of which have a defined value that
precisely identifies its specific color, size and place within the image. (Also known as
bitmapped images.)
Bitmap images are laid out in pixels, much like dots of paint on a canvas. As such, bitmap
objects are not independent entities, which can be singled out for manipulation, but patterned
series of dots. To enlarge (or reduce) bitmap images, the number of pixels is increased
(decreased), often giving the resulting image a jagged appearance.
Vector Graphic
A graphic image drawn in shapes and lines, called paths. Images created in Illustrator and
Freehand (graphic design software) are vector graphics. They are usually exported to be
bitmap images.
A vector Graphic consists of objects, each of which can be separately manipulated - e.g.
sized, moved, (un)grouped, positioned to the back/front. The graphic components are
calculated, hence can be sized without distortion. File formats include: AutoCAD DXF, CBM,
EPS, HGL, PIC, DRW, WMF, WPG.
Vector graphics usually yield much smaller file sizes than bitmap files.
1-bit color
The lowest number of colors per pixel in which a graphics file can be stored. In 1-bit color,
each pixel is either black or white.
8-bit color/grayscale
In 8-bit color, each pixel is has eight bits assigned to it, providing 256 colors or shades of
gray, as in a grayscale image or a color GIF image.
24-bit color
In 24-bit color, each pixel has 24 bits assigned to it, representing 16.7 million colors. 8 bits - or
one byte - is assigned to each of the red, green, and blue components of a pixel.
For practical purposes this color arrangement is sufficient to reproduce pretty convincing color
photographs. However, for a number of reasons, high end photographic manipulation
software, color separation software and so on works better with a non-palette image, one in
which every pixel is represented as a distinct color. In these images, every pixel consists of
three bytes of color information, one each for the red, green and blue
components of the pixel's color. Such pictures are referred to as RGB or twenty-four bit
pictures. Among the formats which currently support 24-bit images are Targa, PCX, JPG,
BMP, IMG and TIFF.
In order to convert twenty-four bit images into palette driven formats, such as GIF, imaging
packages must "quantize" and then "dither" them. Quantizing a twenty-four bit image involves
finding the 256 most unique colors in the image. Dithering involves replacing each RGB pixel
in the image with a palette value which is more or less the same color allowing for the
limitations of a 256 Colour format. In addition, dithering adjusts the colors of surrounding
pixels to make the image as a whole look as much like the original twenty-four bit image as
possible.
Additive Colors
Red, Green, and Blue are referred to as additive colors. Red+Green+Blue=White.
Bitmap
An image made up of dots, or pixels. Refers to a raster image, in which the image consists of
rows or pixels rather than vector coordinates. Web graphics are bitmap images.
There is a very important aspect of color BMP files which you should bear in mind when you
use this format. Windows uses a fixed palette which Windows Paint cannot go about
changing, as doing so would make the screen and border colors change too. This means that
transferring an image to the BMP format may result in some color shifts when BMP files are
imported into Windows applications.
GIFs can contain multiple images, each using a common palette, or separate palettes for
each image. Currently, there are two standard GIF file formats: 87a and 89a. The 89a
GIF contains lossless LZW (Lempel-Zev-Welch) compression and this is why it is suitable for
image files that contain homogeneous colored areas. Since LZW compression is effective on
such files it helps creating small file sizes and makes GIF a preferred format for the internet.
GIF is also suitable for clipped images that are needed in the net environment. It is possible to
select a particular color in the image and define this color as a transparent color not to be
seen within the browser window.
There is also the option of interlaced or non-interlaced GIF. Interlaced GIF files load first with
a very coarse preview version of the contained image and give a glimpse of what is going to
be displayed, the image gets sharper as it continues to load.
Indexed color
A single channel system that allows up to 256 colors that are mapped according to a palette
or color look-up table.
The amount of detail removal is defined by the JPEG quality parameter available to all JPEG
creation software. The higher the quality value, the better the picture quality; and vice versa.
However, the higher the quality value, the larger the resulting image file, so if you want a
really small size file you will have relatively bad quality picture. If the minimum picture size
(therefore the worst image quality) option is selected, the resulting file may not be reopened in
some cases. Optimally, it is best to use medium compression.
Note that several other programs, such as Lead Tools and Image Alchemy have defined their
own formats with the extension JPG. They are not necessarily compatible with the JPEG
standard. If you encounter an error reading a JPG file, you probably have a file from one of
these sources. Once an image has been converted to JPEG, its lost details are lost for good,
you can’t retrieve the first unspoiled version of your image.
Note also that repeatedly reading and writing the same image in the JPG format will
successively degrade it. If you convert an image from another format, such as GIF, to JPG
and then from JPG back to GIF, the final GIF file will usually be smaller than the original, but
will likely look worse than the original.
There are two major types of JPEG - progressive, where a fuzzy images emerges into 100%
decompression / clarity, and baseline or standard, where a clear image is revealed, part-wise,
top-down. Progressive, or interleaved, decompression looks better over networks.
Each PCD file contains a number of scans of the same image at different resolutions (4, 8,
16, 32, 64 base). The very low resolution images are used for thumbnail previews. Medium-
level images are useful to view and work with Photo-CD scans in a PC environment. Very
high resolution images can be used for publication or large size exhibition boards
The higher resolution images in a PCD file may require more memory than your system can
provide under Windows.
PICT
A graphics file format used primarily on Macintosh computers. It is Macintosh operating
systems’ default format. PICT files can contain both object-oriented and bit-mapped graphics.
There are two types: PICT I and PICT II. PICT II is the current standard. PICT II can be
compressed and supports 24-bit color images. PICT is supported by most Mac and PC
graphic programs.
RGB
Short for Red, Green, and Blue; the primary colors used to simulate natural color on computer
monitors and television sets.