Prepare Phatch for PIL 1.1.7
Check workarounds with PIL version:
- interlaced png
- cmyk
Test with PIL 1.1.7:
- acceptance test (1 error)
- doctests
Check pyexiv2
- pep8
Blueprint information
Related branches
Related bugs
Sprints
Whiteboard
core/config.py
try:
import Image
if Image.VERSION <= '1.1.6':
except ImportError:
pass
-------
$ bzr diff
=== modified file 'phatch/
--- phatch/
+++ phatch/
@@ -54,7 +54,8 @@
except IOError, message:
ok = False
# interlaced png
- if ok and not(image.format == 'PNG' and 'interlace' in image.info):
+ if ok and not(Image.VERSION < '1.1.7' and
+ image.format == 'PNG' and 'interlace' in image.info):
return image
# png, tiff (which pil can only handle partly)
if local:
$ bzr commit -m "allow interlaced pngs for pil 1.1.7"
Committing to: /home/stani/
modified phatch/
Committed revision 1675.