467,102 Members | 1,141 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,102 developers. It's quick & easy.

py2exe & qt4/qimage

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?

Jun 1 '06 #1
  • viewed: 2759
Share:
1 Reply
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

Jun 1 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by RJS | last post: by
reply views Thread by Kathleen Kudzma | last post: by
8 posts views Thread by Kathleen Kudzma | last post: by
6 posts views Thread by Luc Saffre | last post: by
11 posts views Thread by aljosa | last post: by
1 post views Thread by shane.external@gmail.com | last post: by
3 posts views Thread by Alex Gusarov | last post: by
reply views Thread by =?iso-8859-1?q?C=E9dric_Lucantis?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.