[Tutor] more on wx and tiff

Wayne Werner waynejwerner at gmail.com
Fri Aug 27 18:44:04 CEST 2010


On Fri, Aug 27, 2010 at 11:25 AM, Albert-Jan Roskam <fomcl at yahoo.com> wrote:

> Hi again,
>
> Some more questions about tiff conversion.
>
> First, thanks for your previous replies. I cannot use IrfanView any time
> soon, nor will my boss switch to Linux.
>

Have you tried using the PIL?
http://www.pythonware.com/products/pil/

import Image
i = Image.open("file.tiff")
i.save(open('file.png', 'w'), filetype='png')

I don't know if that was previously suggested, but it should work on any
platform with PIL installed.

HTH,
Wayne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100827/c2f16fc1/attachment.html>


More information about the Tutor mailing list