List Info

Thread: Need help installing PIL 1.1.5 on OSX (LONG)




Need help installing PIL 1.1.5 on OSX (LONG)
user name
2006-09-22 20:10:37
Thanks Bob, Fredrik.

Gifs work now.  Expect to see a very cool TG app soon!  

-Jack

On 9/22/06, Fredrik Lundh <fredrikpythonware.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-SIGpython.org
> htt
p://mail.python.org/mailman/listinfo/image-sig
>


-- 
Jack Wu
_______________________________________________
Image-SIG maillist  -  Image-SIGpython.org
htt
p://mail.python.org/mailman/listinfo/image-sig
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )