Simple script to make .png thumbnails from .zip archive...

Ant antroy at gmail.com
Mon Jun 19 12:52:48 CEST 2006


Try adapting the other posters example with something like:

 import Image, StringIO
 zip=zipfile.ZipFile(inURL,mode="r")
 picture=zip.read("00.jpg")
 image = Image.open(StringIO(picture))
 image.thumbnail ((128,128), Image.ANTIALIAS)
 image.save (file + '.thumb.png')

I haven't tested it, but something like this should work.




More information about the Python-list mailing list