[Image-SIG] Need help installing PIL 1.1.5 on OSX (LONG)
Jack Wu
wulabs at gmail.com
Fri Sep 22 22:10:37 CEST 2006
Thanks Bob, Fredrik.
Gifs work now. Expect to see a very cool TG app soon! :-)
-Jack
On 9/22/06, Fredrik Lundh <fredrik at pythonware.com> wrote:
> Bob Ippolito wrote:
>
> > You need to convert images that aren't already RGB in order to save
> > them as JPEG. This might be a bug in Engal, but the fix would look
> > something like this:
> >
> > if image.mode != "RGB":
> > image = image.convert("RGB")
>
> I'd recommend
>
> if image.mode not in ("L", "RGB"):
> image = image.convert("RGB")
>
> or even, to do the "right thing" for all possible modes:
>
> if image.mode not in ("L", "RGB"):
> image = image.convert(Image.getmodebase(image.mode))
>
> </F>
>
> _______________________________________________
> Image-SIG maillist - Image-SIG at python.org
> http://mail.python.org/mailman/listinfo/image-sig
>
--
Jack Wu
More information about the Image-SIG
mailing list