使用JavaScript确定图像是灰度还是颜色?
问题描述:
是否可以使用JavaScript确定给定图片是灰度还是颜色?
Is it possible to determine if a given image is grayscale or color using JavaScript?
答
href =http://www.pixastic.com/lib/docs/actions/colorhistogram/ =nofollow> http://www.pixastic.com/lib/docs/actions/colorhistogram/
Take a look at http://www.pixastic.com/lib/docs/actions/colorhistogram/
这将很容易提供您需要确定的数据。
This will easily provide the data you need to determine this.