py2exe & qt4/qimage

Discussion in 'Python' started by aljosa, Jun 1, 2006.

  1. aljosa

    aljosa Guest

    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?
    aljosa, Jun 1, 2006
    #1
    1. Advertising

  2. aljosa

    Serge Orlov Guest

    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
    Serge Orlov, Jun 1, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. F. GEIGER
    Replies:
    0
    Views:
    915
    F. GEIGER
    Aug 16, 2004
  2. python
    Replies:
    3
    Views:
    1,789
    Simon Brunning
    May 22, 2006
  3. Py2exe & (Py)QT4

    , Jul 20, 2006, in forum: Python
    Replies:
    1
    Views:
    784
    David Boddie
    Jul 20, 2006
  4. Chris Spencer

    Re: [Py2exe-users] py2exe 0.6.9 released

    Chris Spencer, Nov 17, 2008, in forum: Python
    Replies:
    3
    Views:
    570
    Pascal
    Dec 8, 2008
  5. Mark Hammond

    RE: [Py2exe-users] py2exe 0.6.9 released

    Mark Hammond, Nov 17, 2008, in forum: Python
    Replies:
    0
    Views:
    457
    Mark Hammond
    Nov 17, 2008
Loading...

Share This Page