py2exe & qt4/qimage

Serge Orlov Serge.Orlov at gmail.com
Thu Jun 1 20:02:44 CEST 2006


aljosa wrote:
> i'm trying to convert python (image resizer script using PyQt4) script
> to exe but support for jpeg and tiff image formats is located in
> Qt4.1\plugins\imageformats (dll files) and when script is converted
> exe file doesn't support jpeg and tiff.
>
> i tryed using all file formats in
> script:
> tmp1 = QImage('images/type.bmp')
> tmp2 = QImage('images/type.gif')
> tmp3 = QImage('images/type.jpg')
> tmp4 = QImage('images/type.png')
> tmp5 = QImage('images/type.tif')
>
> but it doesn't work when i convert script to exe.
> any tips on howto include jpeg and tiff image formats support in exe?

You need bundle the plugins as data files:
http://docs.python.org/dist/node12.html




More information about the Python-list mailing list