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']:

_______________________________________________
Mailing list: https://launchpad.net/~phatch-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~phatch-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to