Is there a lib which support .jpeg file with "RGBA" mode?

google12 google12 at mail.apol.com.tw
Sun Dec 14 09:11:10 EST 2003


Oh, sorry. I made a mistake...

My question is -- when I run the code described below, the transparence of
the orginal image will be removed. How can I keep the transparence?

    im = Image.open(test.png)
    fp = open('test.jpg','wb')
    im.save(fp,'JPEG')

"Fredrik Lundh" <fredrik at pythonware.com> ¦b¶l¥ó
news:mailman.140.1071397918.9307.python-list at python.org ¤¤¼¶¼g...
> "google12" wrote:
>
> > May anyone help me?
> >
> > I need a lib which support .jpeg file with RGBA mode. PIL seems to
support
> > RGB and CMYK mode only...
>
> last time I checked, JPEG didn't support RGBA.
>
> </F>
>
>
>
>






More information about the Python-list mailing list