Works perfectly now!<br><br>Thanks,<br>Michael<br><br><br><div class="gmail_quote">On Wed, Mar 25, 2009 at 01:09, Fredrik Lundh <span dir="ltr"><<a href="mailto:fredrik@pythonware.com">fredrik@pythonware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Tue, Mar 24, 2009 at 9:54 AM, Michael van Tellingen<br>
<<a href="mailto:michaelvantellingen@gmail.com">michaelvantellingen@gmail.com</a>> wrote:<br>
<br>
</div><div class="im">> I've just tested my application with the PIL 1.1.7 tip and latest alpha and<br>
> still have problems with the conversion from CMYK jpeg to RGB.<br>
> The test images mailed earlier on this mailinglist (black background with<br>
> the text 'RED') somehow become yellow on my system (python 2.5 / osx<br>
> leopard).<br>
<br>
</div>Yeah, I completely messed this one up. One crucial change didn't make<br>
it into the library, and embarrasingly enough, I then went on to make<br>
the JPEG regression test look for the broken behaviour...<br>
<br>
Here's the missing patch:<br>
<br>
$ hg diff libImaging/JpegDecode.c<br>
diff -r f17d08c18ab3 libImaging/JpegDecode.c<br>
--- a/libImaging/JpegDecode.c Mon Mar 23 12:51:13 2009 +0100<br>
+++ b/libImaging/JpegDecode.c Wed Mar 25 01:04:59 2009 +0100<br>
@@ -189,7 +189,8 @@<br>
context->cinfo.out_color_space = JCS_GRAYSCALE;<br>
else if (strcmp(context->rawmode, "RGB") == 0)<br>
context->cinfo.out_color_space = JCS_RGB;<br>
- else if (strcmp(context->rawmode, "CMYK") == 0)<br>
+ else if (strcmp(context->rawmode, "CMYK") == 0 ||<br>
+ strcmp(context->rawmode, "CMYK;I") == 0)<br>
context->cinfo.out_color_space = JCS_CMYK;<br>
else if (strcmp(context->rawmode, "YCbCr") == 0)<br>
context->cinfo.out_color_space = JCS_YCbCr;<br>
<br>
Thanks /F<br>
</blockquote></div><br>