What is the difference between PNG8 and PNG24?
1. PNG8 only has a 1-bit Boolean transparency channel, while PNG24 has an 8-bit Boolean transparency channel;
2. PNG8 does not support the translucency of the alpha channel, while PNG24 Supports alpha channel translucency, and each lattice has transparency defined.
Definition of PNG
Portable Network Graphics is a lossless compressed bitmap graphics format designed to attempt to replace 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.
How to distinguish PNG8 & PNG24
Look at the image in PS - mode, of course png8 only has 8 bits/channels.
When you open a png8 picture, PS will add the word "index" to its picture title by default, but png24 does not.
What format should be saved when cutting?
Cut colorful and large pictures into jpg;
Small size, less colorful and transparent backgrounds are cut into gif or png8;
translucent ones are cut into png24.
Recommended tutorial: "PHP Tutorial"
The above is the detailed content of What is the difference between PNG8 and PNG24?. For more information, please follow other related articles on the PHP Chinese website!