Re: Converting from "CMYK" to "RGB"
Charles Cazabon <[email protected]> Fri, 5 Jul 2013 08:01:44 -0600
| Newsgroups | gmane.comp.python.image |
|---|---|
| Message-ID | <[email protected]> |
Matti Viljamaa <[email protected]> wrote: > I'm trying to handle CMYK images by converting them to RGB. I'm using the > following code snippet: [...] > if(image.mode == 'CMYK' ): > image.convert('RGB') That would work, but you're throwing away the converted image and continuing with the original CMYK one. Image.convert() returns a new image and leaves the original alone! Charles -- ------------------------------------------------------------------ Charles Cazabon <[email protected]> Software, consulting, and services available at http://pyropus.ca/ ------------------------------------------------------------------ _______________________________________________ Image-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/image-sig