Changeset 527 for pkpgcounter/trunk/pkpgpdls/inkcoverage.py
- Timestamp:
- 11/28/07 18:28:30 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/inkcoverage.py
r520 r527 25 25 import sys 26 26 27 from PIL import Image 27 import pdlparser 28 28 29 import pdlparser 29 try : 30 from PIL import Image 31 except ImportError : 32 sys.stderr.write("ERROR: You MUST install the Python Imaging Library (python-imaging) for pkpgcounter to work.\n") 33 raise pdlparser.PDLParserError, "The Python Imaging Library is missing." 30 34 31 35 def getPercent(img, nbpix) :