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>
1 file changed
tree: 6666405730b67453b8ba2182a6ec207fae4c1700
  1. INSTALL
  2. README.md
  3. RICOH_Aficio_SP_100.ppd
  4. RICOH_Aficio_SP_204.ppd
  5. check-requirements
  6. pstoricohddst-gdi
README.md

Driver and CUPS filter for Ricoh Aficio SP-100 and SP-200 family laser printers

Current restrictions:

  • Does not count dots -- 1132782 per page hardcoded