diff --git a/ChangeLog b/ChangeLog index 914ce2d6..c3909ec9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 7/6/13 started 7.34.0 - version bump +- oops, VImage.PIL_mode_from_vips() failed for CMYK, thanks Alessandro 12/3/13 started 7.33.0 - vipsthumbnail lets you specify the sharpening mask diff --git a/swig/vipsCC/VImage.i b/swig/vipsCC/VImage.i index 999f8085..9f366b39 100644 --- a/swig/vipsCC/VImage.i +++ b/swig/vipsCC/VImage.i @@ -194,9 +194,9 @@ public: def PIL_mode_from_vips (vim): if vim.Bands () == 3 and vim.BandFmt () == VImage.FMTUCHAR: return 'RGB' - elif vim.Bands () == 4 and vim.BandFmt () == VImage.FMTUCHAR and vim.Type == VImage.VImage.RGB: + elif vim.Bands () == 4 and vim.BandFmt () == VImage.FMTUCHAR and vim.Type () == VImage.RGB: return 'RGBA' - elif vim.Bands () == 4 and vim.BandFmt () == VImage.FMTUCHAR and vim.Type == VImage.CMYK: + elif vim.Bands () == 4 and vim.BandFmt () == VImage.FMTUCHAR and vim.Type () == VImage.CMYK: return 'CMYK' elif vim.Bands () == 1 and vim.BandFmt () == VImage.FMTUCHAR: return 'L'