For images in PNG, JPG, and JIF formats

Source: Internet
Author: User

For images in PNG, JPG, and JIF formats

1. GIF (Graphics Interchange Format)

Introduction

The GIF image interchange format is a bitmap image file format that reproduce a true color image in 8-bit colors (that is, 256 colors.

It is actually a type of compressed document, which is encoded using LZW compression algorithm, effectively reducing the time when image files are transmitted over the network.

It is one of the image formats widely used in network transmission.

Advantages

1. The excellent compression algorithm ensures image quality to a certain extent while making the volume small.
2. Multiple frames can be inserted to achieve the animation effect.
3. Transparent colors can be set to produce the effects of objects on the background.

Disadvantages

Because 8-bit compression is used, a maximum of 256 colors can be processed, so it is not suitable for true color images.
Ii. PNG (Portable Network Graphics)

Portable Network Graphics (PNG) is a lossless data compression bitmap format.

PNG format is lossless data compression. It allows the use of color palette technology similar to GIF format, supports true color images, and features such as Alpha (translucent.

Many people now use the PNG format on the Internet and other aspects.

W3C recommendation for PNG specifications (for more detailed theoretical knowledge, and for exploration-oriented kids shoes, check out. Sorry, it is in English)

Advantages

* Supports the 256-color palette technology to generate small-size files
* Supports up to 48 real color images and 16 gray images.
* Supports the translucent feature of the Alpha channel.
* Gamma Correction information of image brightness is supported.
* Additional text information can be stored to retain the image name, author, copyright, creation time, comments, and other information.
* Use lossless compression.
* It is applicable to quick display of the preview effect during network transmission and stream read/write.
* Use CRC redundancy to prevent file errors.
* The latest PNG standard allows you to store multiple images in one file.

Disadvantages

However, some software cannot use suitable predictions, resulting in over-bloated PNG files.

3. JPG (Joint Photographic Experts Group)

JPEG is a standard distortion compression method widely used for photo and image.

The compression method of JPEG is usually destructive data compression (lossy compression), meaning that the image quality will be visible during the compression process.

Advantages

JPEG/JFIF is the most common format used to store and transmit photos on the World Wide Web.

JPEG achieves the best effect in painting and painting.

In this case, it is generally better than the completely distortion-free method, and can still produce very nice-looking images (in fact, it will be better than other

The method is like GIF to produce higher quality images, because GIF is not distorted for drawing and graphic images,

However, full-color images require extremely difficult quantification ).

Disadvantages

It is not suitable for drawing lines and other text or graphical images (iconic), because its compression method is used on the type of these images,

The result is incorrect.

4. In simple terms, the most convenient way to differentiate is:

Png can be transplanted to the network image format. It is also a bitmap file storage format that can be lossless compression.

Jpg is our most common image format, which consumes less storage but sacrifices the image quality.

Simply put, it is lossless and lossy.

JPG is a type of Lossy image compression, which removes redundant images and color data,

A very high compression ratio can be obtained to present rich and vivid images at the same time. In other words, the image quality can be achieved with the minimum disk space.
PNG is not compact and can save transparent images. It also provides 24-bit and 48-bit real-color image support and many other technical support.

The PNG format can be edited. There are fonts in the film, and you can use PS to make changes.
JPG format cannot be edited.
For the resolution of the two formats, PNG is higher than JPG.
PNG is not applicable to any scenario, because it is large in size and does not use display. It is used by editors as a backup for later image changes.
JPG format is used in many occasions and is not described in detail.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.