Strengths and weaknesses of image format

JPEG: the most suitable for continuous-tone images, such as photographs

1600w can represent multiple images of different colors contain up to, this is a "lossy" format, because some of the information will be lost when the image reduce file size.

It does not support transparency.

File is relatively small, in order to more efficiently display the web page. It does not support animation.

 

PNG: the most suitable for monochrome images and image lines formed (such as logo, clip art images and small text).

PNG images can contain millions of different colors. There are three PNG: PNG-8, PNG-24, and PNG-32, depending on how many colors you need representation.

PNG will compress files to reduce file size, but will not lose information. So this is a "lossless" format

Allow color to "transparent", the following things image can be displayed.

The corresponding JPEG file you want to ratio, PNG files larger, but depends on the number of colors,

May be smaller than the corresponding GIF file, also may be greater

GIF: like PNG, GIF image most suitable for monochrome images and lines formed (such as logo, clip art images and small text)

GIF images can represent up to 256 different colors.

GIF is a "lossless" format.

GIF also supports transparency, but allows only one color is set to "transparent."

GIF files are often larger than the corresponding JPEG file

Support animation

Guess you like

Origin www.cnblogs.com/572354941hnit/p/11545313.html