Search code examples
imageencodingpngbit

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 can't figure this out. Thanks


Solution

  • 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