Changeset 2142


Ignore:
Timestamp:
21 Aug 2007, 18:47:19 (17 years ago)
Author:
Henrik Bettermann
Message:

fix allow resize of jpec pictures

Location:
WAeUP_SRP/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Widgets.py

    r2137 r2142  
    15291529        else:
    15301530            image = open(file_path)
    1531             from OFS.Image import getImageInfo as gia
     1531            from OFS.Image import getImageInfo as getImageInfoOFS
    15321532            image.seek(0)
    1533             data = image.read(240)
     1533            data = image.read(2000)
    15341534            size = len(data)
    15351535            empty_file = size == 0
     
    15371537            last_modified = ''
    15381538            image.close()
    1539             mimetype, width, height = gia(data)
    1540             #import pdb;pdb.set_trace()
     1539            mimetype, width, height = getImageInfoOFS(data)
    15411540
    15421541            if width < 0:
  • WAeUP_SRP/trunk/profiles/default/layouts/application.xml

    r2140 r2142  
    341341    <property name="display_width">100</property>
    342342    <property name="display_height">150</property>
     343    <property name="allow_resize">True</property>
    343344  </widget>
    344345  <widget name="phone" meta_type="String Widget">
Note: See TracChangeset for help on using the changeset viewer.