Traditional Culture Encyclopedia - Photography and portraiture - The difference between png8 and png24

The difference between png8 and png24

The difference between png-8 and png-24

Png is a picture format, which is the abbreviation of portable network graphics. Do ping.

The differences between png8 and png24 are as follows.

1

"PNG8" refers to an 8-bit indexed color bitmap, and "PNG24" refers to a 24-bit indexed color bitmap;

The difference between png8 and png24

2

png8:

Each "png8" picture can only display 256 colors at most, so the "png8" format is more suitable for those pictures with a single color, such as solid colors, logo, icons and so on. Because the number of colors is small, the size of the picture will be smaller;

The difference between png8 and png24

three

png24:

Each "png24" image can display far more colors than "png8", and the maximum number of colors that can be displayed is16 million; Therefore, the picture displayed by "png24" will be richer in color, better in definition and higher in quality, and of course, the size of the picture will increase accordingly, so the picture of "png24" is more suitable for pictures with rich colors like photos;

The difference between png8 and png24

PNG8 is either completely transparent or completely opaque.

Ming does not support translucency, so the above problems will occur, but PNG24 supports translucency.

First of all, let's make a comparison, because it is estimated that people who do the front end know that png is a semi-transparent picture like me. In fact, we also need to know:

The fundamental difference between 1.png8 and png24 is not the difference of color bits, but the difference of storage methods.

2.png8 has a 1 bit Boolean transparent channel (either completely transparent or completely opaque), and png24 has an 8-bit (256 steps) Boolean transparent channel (so-called translucency).

Png-8 and gif have some similarities. Both modes are index colors, which only support pixel-level pure transparency and do not support alpha transparency.

We usually say "IE6 does not support PNG transparency", that is, it does not support PNG-24 transparency. But IE6 supports the transparency of PNG-8, just as it supports the transparency of gif.

In this way, our work will have a direction:

1. Cut the large color image into jpg.

2. Cut into gif or png8, with small size, low color and transparent background;

3. Cut into translucent png24.

Reference:/s/blog _ 9050e71e0100yvtf.html.

/article/ff 42 EFA 9 1a 04 b 9 c 19e 220232 . html

Good articles should pay close attention to this article in my collection.

It's raining.

Focus -5

Vermicelli -24

+Attention

0 0

Previous: css controls the ellipsis when the title length exceeds the limit.

Next: Go back to the top button implementation.

Post @ 2014-07-0517:18 Reading in the rain (33 1 1) Comments (0) Edit Collection

Refresh the comments, refresh the page and return to the top.

Registered users can only comment after logging in. Please log in or register and visit the website home page.

Related blog posts:

The difference between JPG, PNG, GIF, SVG and WebP format pictures.

Pixel-level processing of png image

. Netcore 2.2 uses imagemagick to convert pdf to png.

Java realizes the conversion of tif/tiff/bmp images into png images.

Photoshop 32-bit canvas cannot be stored in PNG format.

More recommendations ...

The latest IT news:

Embarrassed: Tencent has just given employees Huawei Mate Xs at 10000, and many people have already sold it in idle fish.

Win 10 new preview version Build 20226 push: SSD will notify the disk drop and bad disk in advance.

Divide Baidu a little and recreate a Baidu.

Microsoft's shot: Make Edge the default browser for Windows 10!