Prepare Phatch for PIL 1.1.7

Registered by Stani

Check workarounds with PIL version:

- interlaced png
- cmyk

Test with PIL 1.1.7:
- acceptance test (1 error)
- doctests

Check pyexiv2
- pep8

Blueprint information

Status:
Complete
Approver:
Stani
Priority:
Essential
Drafter:
Stani
Direction:
Approved
Assignee:
Stani
Definition:
Approved
Series goal:
Accepted for 0.2
Implementation:
Implemented
Milestone target:
milestone icon 0.2.7
Started by
Stani
Completed by
Stani

Related branches

Sprints

Whiteboard

core/config.py
    try:
        import Image
        if Image.VERSION <= '1.1.6':
            fix_python_path(os.path.join(phatch_path, 'other', 'pil_1_1_6'))
    except ImportError:
        pass
-----------------------------------------------------------------
$ bzr diff
=== modified file 'phatch/lib/openImage.py'
--- phatch/lib/openImage.py 2010-03-01 16:02:49 +0000
+++ phatch/lib/openImage.py 2010-03-04 03:20:46 +0000
@@ -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/sync/python/phatch/repo/trunk/
modified phatch/lib/openImage.py
Committed revision 1675.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.