The pursuit of technology, to explore the source, I am the summer of the city.

JPEG (Joint Photograph Experts Group)

The Joint Image Expert Group is a lossy compression format widely used for color photographs.

  • Introduction: It is a raster graphics, common file extensions to.jpg, also.jpeg,.jpe, this is the most widely used on the Internet, and is the most. JPEG is commonly used to store and transfer photos on the Internet.

  • Not suitable: This format has some disadvantages, such as lines, graphic text, and images such as ICONS, because the compression method is not suitable for these types of graphics, and it does not support transparency.

  • Perfect: But what is the JPEG format perfect for? What kind of pictures? For example, some colorful photos, color pictures, large focus pictures, and some banner pictures and irregular structure graphics, is our camera or our mobile phone shot some particularly rich colors, you can remember this can.

PNG (Portable Network Graphic)

PNG portable network graphics, it is a lossless compressed bitmap image format, supporting index, gray, RGB color schemes, as well as Alpha channel characteristics.

  • Introduction: PNG is a raster image. In fact, PNG was originally designed as a replacement for GIF. It can display 256 colors and has a larger file size than either JPEG or GIF. Up to 24 bit color images, known as PNG-24, and some 8 grayscale images, known as PNG-8, are supported.

  • Not suitable: PNG format is not suitable for anything but color images, because it is lossless storage, and it is relatively large, JPEG images such as PNG it is not very supported.

  • Suitable for: PNG it fits with what kind of graphics, pure color, and some transparent, including some of the line drawing pictures such ICONS, and the edge is clear, by the large pieces of the same color of the area, such as our pure blue, pure red or pictures is pure white, or is associated with graphics, triangular this kind of diamond, Just some pictures of solid color graphics like this. It has fewer colors, but some may require transparency and are supported.

Graphic Interchange Format (GIF)

Image interchange format, it is a bitmap graphics file format, in 8 bit color (256 colors) to reproduce the true color image, using LZM compression algorithm encoding,

  • GIF is also a raster graphics that supports 256 colors, but it only supports full transparency and full opacity. If you want to compare general animation techniques, the GIF format is almost the only option.

– Not suitable: what situation does it not fit? It only has 8 bits per pixel, so it’s not good for color images, rich color images like JPEGs, it’s not good for that.

  • Great for: It’s good for animation, and some moving ICONS.

Webp

Webp is a modern image format that provides lossless and lossy compression for images. It is very flexible, developed by Google after the purchase of On2 Technologies, and is distributed under BSD license terms, so we don’t have to worry about its copyright use.

  • Introduction: WebP excellent algorithm to ensure a certain degree of picture quality and relatively small volume, you can insert multiple frames to achieve animation effect, you can set transparency. It uses 8-bit compression algorithm, lossless WebP is 26% smaller than PNG, lossy WebP is 25 ~ 34% smaller than JPEG. Better animation than GIF.

  • Doesn’t fit: What does it not fit? Because it shows up to 256 colors. It doesn’t work well with color photos, it doesn’t work well with colorful pictures like JPEGs.

  • Suitable: It is very suitable for common graphics, as well as some semi-transparent images.