Advantages and Disadvantages of PNG Format

  

Gif Format Features Transparency Gif is a Boolean transparent type that can be either fully transparent or fully opaque, but it is not translucent (alpha transparent). This format supports animation. Lossless M Gif is a lossless image format that is completely opaque, but it is not translucent (alpha transparency).

This format supports animation.

Lossless

Gif is a lossless image format, which means you can do anything with gif images. Does not cause loss of image quality.

Gif is compressed using an algorithm called LZW. In the process of compressing gif, the pixels are horizontally compressed from top to bottom, which means that the horizontal gif image under the same conditions. It is smaller than the vertical gif image. For example, a picture of 500*10 is smaller than a picture of 10*500

A progressive display of intervals

Gif supports an optional interval progressive display + gif of only 256 colors seen by the above features The picture is not suitable for photos, but it is suitable for graphics that do not require high color (such as icons, charts, etc.), it is not the best choice, we will see in the back that png is the best choice.

Jpeg format features transparency

Loss

Except for some rotations (only 90, 180, 270 degrees rotation), cutting, from standard type to advanced Type, in addition to editing the original data of the picture, all other operations on the jpeg image will make its quality loss. So we usually use png as the transition format in the editing process.

Interlaced Progressive Display

It supports interlaced progressive display (but the IE browser does not support this property, but IE will display when the entire image information is completely reached).

It can be seen from the above that Jpeg is the best photographic image and digital camera on the web. Png format feature type "

Png this image format includes many sub-classes, but in practice can be roughly divided into 256-color png and full-color png, you can use 256-color png instead Gif, replace jpeg with full color png

Transparency Png is fully alpha transparent (transparent, translucent, opaque), although there are two weird phenomena in ie6 (discussed in more detail below)

Lossless png is a lossless image format, which means you can do anything with a png image without losing image quality. This also makes png a transitional format for jpeg editing.

Horizontal scanning

Like GIF, png is also horizontally scanned, which means that the horizontal repeating color is smaller than the vertical repeating color. Progressive display

It supports interval progressive display, but will cause the image size to become larger. PNG24

Full color PNG alias)

PNG32

Others Image format and PNG comparison

GIF is suitable for graphics, JPEG is suitable for photos, PNG series are suitable for both

Compared to GIF

PNG 8 except for animation, PNG8 There are all the features of GIF, but it is more advantageous than GIF because it supports alpha transparency and better compression. So, in most cases, you should use PNG8 instead of GIF (except for very small image GIFs that have better compression).

Compared to JPEG JPEG, JPEG JPEG has better compression than full-color PNG, so it also makes JPEG suitable for photos, but it is easy to cause quality loss during editing JPEG, so full-color PNG is suitable as a transition format for editing JPEG.

Copyright © Windows knowledge All Rights Reserved