On 9/22/06, Jack Wu <[EMAIL PROTECTED]> wrote:
> Wow Bob,
>
> Good suggestion. The application I'm using is Engal on Turbogears, a
> prototype photosharing web app. The JPEG photos now load correctly.
>
> The Gif images do not, and I get a "IOError: cannot write mode P as
> JPEG", but I will leave that to another thread after I do some
> dissecting.
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")
-bob
_______________________________________________
Image-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/image-sig