commit | 75be4bf6a801db800e45fdce3ef3b977f3c7913c | [log] [tgz] |
---|---|---|
author | James Bottomley <JBottomley@Parallels.com> | Thu Jul 24 16:38:20 2014 -0700 |
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | Sun Dec 06 11:37:10 2020 -0800 |
tree | 0203f8a5f601beb414dea04764ec92ed1d0a6d7a | |
parent | 0678958330ae757a9fc0532f7bedb5762683a100 [diff] |
pstoricohddst-gdi: Implement dot counts The printers need the dotcounts per page to estimate toner use, so implement this using the ImageMagick identify command. One of the fx variables is the mean, which is the average colour of the image. For b/w images, this represents the number of white pixels divided by size. Thus the black dot count is width*height*(1-mean). Tidy up some of the repeated elements in the script so this calculation is only in one place for ease of maintenance. Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Sorry, this repository is not maintained anymore.
See https://github.com/madlynx/ricoh-sp100/network and https://github.com/madlynx/ricoh-sp100/pulls for more info