确定如果PNG是8或24? [英] FInd out if PNG is 8 or 24?

查看:156
本文介绍了确定如果PNG是8或24?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法找出PNG是8或24类型?我试过窗口,烟花和photoshop,但我不能弄清楚。
谢谢

解决方案

在Photoshop中打开它,并检查顶部栏中写的内容。如果它指出索引,那么它被保存为8位PNG,如果它说RGB / 8,那么你的PNG是32位的。
或者您可以打开图像/模式菜单,对于一个8位的,它将是索引颜色,而对于32位的RGB颜色。



另一个真正快速的方式来告诉不打开文件是看图像中是否有平滑的渐变透明胶片。 8位png没有透明渐变 - 它完全不透明或完全透明(之间没有任何关系)。


(对于那些谁没有Photoshop)


如何识别Windows上图像文件的位深度:

  *右键单击*图像文件>属性>细节>位深度


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

解决方案

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

这篇关于确定如果PNG是8或24?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆