py2exe & qt4/qimage

A

aljosa

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?
 
S

Serge Orlov

aljosa said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top