473,503 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
1 2967
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2971
by: RJS | last post by:
Hi all, I can't get a py2exe compiled app to run with numarray (numarray-0.5.win32- py2.2). Also wxPythonWIN32-2.3.3.1-Py22 and ActivePython-2.2.1-222. In the sample below, commenting out...
0
1697
by: Kathleen Kudzma | last post by:
I'm having a problem with py2exe for Python 2.3. I got fixed the Lookuperror no codec search functions registered: can't find encoding by following the instructions on the py2exe page (added...
8
4719
by: Kathleen Kudzma | last post by:
Does anyone know how to resolve the following problem that I'm getting in Python 2.2 and 2.3? PROBLEM: When I try to create a classReader object I get an exception: "SAXReaderNotAvailable: No...
6
3933
by: Luc Saffre | last post by:
Hello, I had a strange problem when freezing (using either py2exe or McMillan installer) a script that imports reportlab (which imports PIL (which imports FixTk))). - Python 2.3.3c (also with...
2
1685
by: Will | last post by:
Maybe there is another group for posting this... I am a total newbie to Python... so please forgive me if I ask a bunch of inappropriate questions... as I am a big question asker. If I develope...
11
2981
by: aljosa | last post by:
i'm looking for image lib which supports common image types (maybe freeimagepy?) and is relatively easy to display image loaded through that lib in PyQt4. any ideas? Aljosa
1
3462
by: shane.external | last post by:
I'm having trouble using Py2exe with a PyQT-based python project. Or possibly I'm having a problem with PyQT and Py2exe makes it apparent. Whichever it is, I run into trouble with importing QtCore...
3
1032
by: Alex Gusarov | last post by:
Hello, I've met a problem - I want my program working without Python installation but I have some add-on mechanism (add-ons represented by separate .py files, and application auto-recognize such...
0
901
by: =?iso-8859-1?q?C=E9dric_Lucantis?= | last post by:
Le Thursday 19 June 2008 13:00:32 Alex Gusarov, vous avez écrit : I guess you're reading these addons with the exec or execfile builtins ? I don't really know py2exe but I bet it can handle it...
0
7201
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7278
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7328
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7456
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5011
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3166
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3153
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
379
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.