Different Image File Formats:
PNG
JPEG
BMP
SVG
PNG: (Portable Network Graphics)
Pros
- 24bit color / 8bit color(256 colors)
- uses lossless compression
- suitable for flat areas of colors, logos, transparent or semitransparent images
- suitable for icons
- in most cases PNG has a smaller file size than GIF
- it has alpha channel transparency which is more advance than GIF’s transparency
- approved as standard in 1996
- proposed as replacement of GIF by World Wide Web Consortium
Cons
- it is wise to avoid using PNG with big photos and images with details because of the big generated file size
- in different situations it has bigger file sizes than JPG
JPEG: (Joint Photographic Experts Group)
Pros
- 24bit color
- suitable for images, high details & quality pictures
- uses lossy compression
- it is the most used graphic file format
- approved as standard in 1994
- used in design and photography industry – it is likely to see nature photos in JPG file format
- it is good when you are willing to drop quality from a picture for the sake of file size
Cons
Pros
- it is not suitable for logos and icons because it does not have transparency and it can generate a bigger file size for small resolution images.
- it does not support transparency
BMP: (Bitmap)
Pros
- bitmap files may be easily created from existing pixel data stored in an array in memory.
- retrieving pixel data stored in a bitmap file may often be accomplished by using a set of coordinates that allows the data to be conceptualized as a grid.
- pixel values may be modified individually or as large groups by altering a palette if present.
- bitmap files may translate well to dot-format output devices such as CRTs and printers.
- they can be very large, particularly if the image contains a large number of colors. Data compression can shrink the size of pixel data, but the data must be expanded before it can be used, and this can slow down the reading and rendering process considerably. Also, the more complex a bitmap image (large number of colors and minute detail), the less efficient the compression process will be.
- they typically do not scale very well. Shrinking an image by decimation (throwing away pixels) can change the image in an unacceptable manner, as can expanding the image through pixel replication. Because of this, bitmap files must usually be printed at the resolution in which they were originally stored.
No comments:
Post a Comment