Changeset 1712 for WAeUP_SRP/trunk
- Timestamp:
- 25 Apr 2007, 19:49:50 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Students.py
r1711 r1712 655 655 break 656 656 if file is not None: 657 img = PIL.Image.open(file) 658 img.thumbnail((150,200), 659 resample=PIL.Image.ANTIALIAS) 660 # We now need a buffer to write to. It can't be the same 661 # as the inbuffer as the PNG writer will write over itself. 662 outfile = StringIO() 663 img.save(outfile, format=img.format) 664 #outfile = file.read() 657 658 ## file conversion does not work 659 #img = PIL.Image.open(file) 660 #img.thumbnail((150,200), 661 # resample=PIL.Image.ANTIALIAS) 662 #outfile = StringIO() 663 #img.save(outfile, format=img.format) 664 665 outfile = file.read() 665 666 app_doc.manage_addFile('passport', 666 667 file=outfile,
Note: See TracChangeset for help on using the changeset viewer.