search
HomeCommon ProblemWhat format is png?

What format is png?

Dec 10, 2020 pm 04:16 PM
Formatpng

png is a bitmap format that uses a lossless compression algorithm. The PNG format has three forms: 8-bit, 24-bit, and 32-bit. The 8-bit PNG supports two different transparent forms. The 24-bit PNG does not support transparency. The 32-bit PNG adds an 8-bit transparent channel to the 24-bit. Therefore, Can display 256 levels of transparency.

What format is png?

The operating environment of this tutorial: Windows 7 system, Dell G3 computer.

png is a bitmap format that uses a lossless compression algorithm. Its design purpose is to try to replace the GIF and TIFF file formats, while adding some features that the GIF file format does not have. PNG uses a lossless data compression algorithm derived from LZ77, which is generally used in JAVA programs, web pages or S60 programs because of its high compression ratio and small file size.

The PNG format has three forms: 8-bit, 24-bit, and 32-bit. 8-bit PNG supports two different transparent forms (index transparent and alpha transparent), 24-bit PNG does not support transparency, and 32-bit PNG An 8-bit transparency channel is added to the 24-bit, so it can display 256 levels of transparency.

The numbers after PNG8 and PNG24 represent the maximum color values ​​that can be indexed and stored in this PNG format. 8 represents 2 to the 8th power, which is 256 colors, and 24 represents 2 to the 24th power, which is about 16 million colors.

Features

  • ##Small size Due to bandwidth constraints in network communications, it is impossible to have large images in web pages on the premise of ensuring clear and realistic pictures. The range uses bmp format files with larger files.

  • Lossless compression PNG files are compressed using an algorithm derived from the LZ77 algorithm. The result is a high compression ratio without loss of data. It uses a special encoding method to mark repeated data, so it has no impact on the color of the image, and no color loss is possible, so that it can be saved repeatedly without reducing the image quality.

  • Indexed Color Mode The PNG-8 format is similar to GIF images, and also uses an 8-bit palette to convert RGB color images into indexed color images. What is saved in the image is no longer the color information of each pixel, but the representative color numbers selected from the image. Each number corresponds to a color, and the amount of data in the image is therefore reduced, which has a negative impact on the dissemination of color images. Very beneficial.

  • More optimized network delivery shows that PNG images are streamed on the browser, even if the image is interleaved to provide the viewer with a basic image content before being fully downloaded, and then It gradually became clearer. It allows continuous reading and writing of image data, which is very suitable for displaying and generating images during communication.

  • Support transparency effect PNG can define 256 transparent levels for the original image, allowing the edges of the color image to blend smoothly with any background, thereby completely eliminating jagged edges. This feature is not available in GIF and JPEG.

PNG also supports alpha channel transparency for true color and grayscale images. Supports up to 24-bit true color images and 8-bit grayscale images. Supports alpha channel transparency/translucency. Supports gamma calibration information for image brightness. Supports storing additional text information to retain image name, author, copyright, creation time, comments and other information.

If you want to read more related articles, please visit

PHP Chinese website! !

The above is the detailed content of What format is png?. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.