9
JPEG/JPG JPEG/JPG

JPG vs. GIF vs. PNG

  • Upload
    kay2

  • View
    2.522

  • Download
    3

Embed Size (px)

Citation preview

Page 1: JPG vs. GIF vs. PNG

JPEG/JPG JPEG/JPG

Page 2: JPG vs. GIF vs. PNG

JPEG/JPGJPEG/JPGShort for Short for JJoint oint PPhotographic hotographic EExperts xperts GroupGroup, the original name of the , the original name of the committee that wrote the standard.committee that wrote the standard.

JPG is one of the image file formats supported on the Web.

JPG is a lossy compression technique that is designed to compress color and grayscale continuous-tone images.

Page 3: JPG vs. GIF vs. PNG

The information that is discarded in the compression is information that the human eye cannot detect.

JPG images support 16 million colors and are best suited for photographs and complex graphics. The user typically has to compromise on either the quality of the image or the size of the file. JPG does not work well on line drawings, lettering or simple graphics because there is not a lot of the image that can be thrown out in the lossy process, so the image loses clarity and sharpness.

Page 4: JPG vs. GIF vs. PNG

GIF GIF

Page 5: JPG vs. GIF vs. PNG

GIF short for Graphics Interchange Format, GIF short for Graphics Interchange Format, another of the graphics formats supported another of the graphics formats supported by the Web. Unlike JPG, the GIF format is a by the Web. Unlike JPG, the GIF format is a lossless compression technique and it lossless compression technique and it supports only 256 colors. supports only 256 colors.

GIF is better than JPG for images with only a few distinct colors, such as line drawings, black and white images and small text that is only a few pixels high.

Page 6: JPG vs. GIF vs. PNG

With an animation editor, GIF images can be put With an animation editor, GIF images can be put together for animated images. GIF also supports together for animated images. GIF also supports transparencytransparency, where the background color can be , where the background color can be set to transparent in order to let the color on the set to transparent in order to let the color on the

underlying Web pageunderlying Web page to show through.to show through.

The compression algorithm used in the The compression algorithm used in the GIF format is owned by Unisys, and GIF format is owned by Unisys, and companies that use the algorithm are companies that use the algorithm are supposed to license the use from supposed to license the use from Unisys.Unisys.**

Page 7: JPG vs. GIF vs. PNG

PNGPNG

Page 8: JPG vs. GIF vs. PNG

PNG short for PNG short for PPortable ortable NNetwork etwork GGraphicsraphics, the third graphics standard , the third graphics standard supported by the Web (though not supported by the Web (though not supported by all Browser). PNG was supported by all Browser). PNG was developed as a patent-free answer to developed as a patent-free answer to the GIF format but is also an the GIF format but is also an improvement on the GIF technique. improvement on the GIF technique.

An image in a lossless PNG file can be 5%-25% more compressed than a GIF file of the same image.

Page 9: JPG vs. GIF vs. PNG

PNG builds on the idea of transparency in GIF images PNG builds on the idea of transparency in GIF images and allows the control of the degree of transparency, and allows the control of the degree of transparency,

known as known as opacityopacity. .

Saving, restoring Saving, restoring and re-saving a and re-saving a PNG image will not PNG image will not degrade its quality. degrade its quality. PNG does not PNG does not support animation support animation like GIF does.like GIF does.