Find image unique colors and bit depth using imagemagick identify

Print image unique colors and bit depth

$ identify -format "UniqueColors: %k, BitDepth:%q\n" img1.png
UniqueColors: 1694, BitDepth:16

Note that when can compress an image with high unique colors value to lower value to reduce image size. Similarly lower depth will also mean lower image size.

Share this article: share on Google+ share on facebook share on linkedin tweet this submit to reddit


Click here to write/view comments