percentcolour1
How much c/m/y/k coverage is there in a given png image.
Usage
percentcolour filename.png
Overview
percentcolour prints the percentage coverage for a given colour PNG image, to three decimal places. filename.png must be 3x8-bit RGB, such as is generated by GhostScript's png16m device. The cyan, magenta, yellow and black components are printed on standard output separated by a colon (:).
Examples
percentcolour filename.png
yields
33.142:12.042:4.665:0.516
indicating that 33.142% of the page is covered in cyan, 12.042% by magenta, 4.665% by yellow and 0.516% by black.
Requirements
percentcolour only requires libpng to be present on the system.
Installation
Please see the accompanying README and INSTALL files for installation instructions. Chances are if you're reading this it's correctly installed.