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

fix allow resize of jpec pictures

File:
1 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:
Note: See TracChangeset for help on using the changeset viewer.