← Back to team overview

phatch-dev team mailing list archive

[Merge] lp:~kenseehart/phatch/PGM_bugfix_472978 into lp:phatch

 

Ken Seehart has proposed merging lp:~kenseehart/phatch/PGM_bugfix_472978 into lp:phatch.

    Requested reviews:
    stani (stani)


Fixed bug 472978 - PGM save


-- 
https://code.launchpad.net/~kenseehart/phatch/PGM_bugfix_472978/+merge/19899
Your team Phatch Developers is subscribed to branch lp:phatch.
=== modified file 'phatch/lib/imtools.py'
--- phatch/lib/imtools.py	2009-10-06 05:47:25 +0000
+++ phatch/lib/imtools.py	2010-02-22 19:22:12 +0000
@@ -688,9 +688,7 @@
         if image.mode in ['RGBA', 'YCbCr']:
             return image.convert('RGB')
     elif format == 'PGM':
-        if image.mode in ['P', 'CMYK', 'YCbCr']:
-            return image.convert('RGB')
-        if image.mode in ['LA']:
+        if image.mode !='L':
             return image.convert('L')
     elif format == 'PPM':
         if image.mode in ['P', 'CMYK', 'YCbCr']:


Follow ups