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. Advertisements

  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. Advertisements

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:
    1,194
    F. GEIGER
    Aug 16, 2004
  2. python
    Replies:
    3
    Views:
    2,446
    Simon Brunning
    May 22, 2006
  3. aljosa

    image lib & Qt4

    aljosa, Jun 1, 2006, in forum: Python
    Replies:
    11
    Views:
    1,481
    Fredrik Lundh
    Jun 3, 2006
  4. Py2exe & (Py)QT4

    , Jul 20, 2006, in forum: Python
    Replies:
    1
    Views:
    911
    David Boddie
    Jul 20, 2006
  5. Marcpp

    Qt4 in ubuntu

    Marcpp, Apr 15, 2007, in forum: Python
    Replies:
    3
    Views:
    458
    Diez B. Roggisch
    Apr 16, 2007
  6. Ajith
    Replies:
    0
    Views:
    692
    Ajith
    May 2, 2007
  7. luca72

    qt4 setFlags

    luca72, Jun 14, 2007, in forum: Python
    Replies:
    1
    Views:
    440
    Diez B. Roggisch
    Jun 14, 2007
  8. Chris Spencer

    Re: [Py2exe-users] py2exe 0.6.9 released

    Chris Spencer, Nov 17, 2008, in forum: Python
    Replies:
    3
    Views:
    784
    Pascal
    Dec 8, 2008
Loading...