What is the format of png? Png and gif format picture difference

  
                  

What is the format of png? Recently, some netizens have asked such a simple question. Well, given the computer rookie, it also explains what format png is. In fact, the answer is very simple, as long as you know the image format. Perhaps the image format that many rookie friends see is jpg and gif. I forgot the format of png. Here are the formats of png, jpg, and gif, and compare their respective advantages and disadvantages.

First of all, whether it is png, jpg, or gif format, they have one thing in common is the image format, they can be directly generated by common graphics software such as PS. Below we introduce the characteristics and differences between the three.

GIF image format: born in 1987, often used for web animation, using lossless compression, supporting 256 colors (generally called 8 bit color), supporting a single transparent color;
gif format image effect

JPEG picture (referred to as jpg): born in 1992, photos are generally used in this format, lossy compression, 24 bit true color (224 = 170,000 colors), does not support animation, does not support transparent color;

PNG image format: released in 1996, lossless compression, the most common use format is 256 index color (PNG-8) and 24 bit true color (PNG-24) (of course, PNG supports color formats much more than this), support full alpha Channel (256 levels of adjustable translucent color), no animation is supported.

Three image formats are simple to compare:

JPEG vs. PNG format image comparison: JPEG has a huge advantage in photo compression, this is irreplaceable, but JPEG is lossy compression, picture There will be a loss of quality. In addition, the general screen capture is in PNG format, which is not only higher in quality than JPEG but also smaller in file size.

GIF vs. PNG format image comparison: GIF only has advantages in simple animation (in fact, GIF 256 color limit and lossless compression mechanism lead to the release of high quality animations generally use Flash format), as long as there is no animation , PNG can completely replace GIF. In general, GIF is divided into static GIF and animated GIF, with a .gif extension. It is a compressed bitmap format that supports transparent background images and is suitable for multiple operating systems. “Small” is small. Many small animations on the web are in GIF format. In fact, GIF saves multiple images as an image file to form an animation, so in the end GIF is still the image file format. But the GIF can only display 256 colors. Like the jpg format, this is a very popular graphics file format on the web. So generally the dynamic images we see on the webpage are generally in GIF format.

Many image formats in the network generally use png. png is a picture storage format that can be used directly as a material because it has a very good feature: background transparency. What format is output in the production picture selection, mainly based on the image format characteristics to select the best output.

Copyright © Windows knowledge All Rights Reserved