Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FInd out if PNG is 8 or 24?

Is there a way to find out if a PNG is the 8 or 24 type? Ive tried with windows, fireworks and photoshop but I cant figure this out. Thanks

like image 325
Evanss Avatar asked Jun 08 '11 11:06

Evanss


People also ask

How can you tell if a PNG is 8 or 24?

Mostly, the numbers attached to the PNG term refer to the bit level supported by computers. Therefore, PNG 8 supports 8-bit colors while PNG 24 supports 24-bit colors. Take note, having a higher bit support doesn't imply that the file format is of higher quality than the lower bit support.

How do I know if an image is 8-bit?

One of the easiest ways to know if you are working with an 8-bit image is to check the image's file format. If the image is a JPEG (with the extension “. jpg”), it will always be an 8-bit image. One of the advantages of working with 8-bit images is they are typically smaller in file size.

Is PNG a 24 bit?

The PNG‑24 format supports 24‑bit color. Like the JPEG format, PNG‑24 preserves the subtle variations in brightness and hue found in photographs. Like the GIF and PNG‑8 formats, PNG‑24 preserves sharp details like those in line art, logos, or type.


1 Answers

Open it in Photoshop and check what's written on the top bar. If it says "index", then it has been saved as 8-bit PNG, if it says "RGB/8" then your PNG is a 32-bit one. Alternatively you can open Image/Mode menu and for an 8-bit one it would be "Indexed color", while for a 32-bit one - "RGB color".

Another really quick way to tell without opening the file is to see if there is any smooth gradient transparencies in the image. 8 bit pngs don't have transparent gradients - it's either fully opaque or fully transparent (nothing in between).

(For those who don't have Photoshop)

Howto identify bit depth for image files on Windows:

*Right click* image file > Properties > Details > Bit depth

Identify image bit depth on Windows

like image 159
Thariama Avatar answered Nov 13 '22 19:11

Thariama