[Image-SIG] MemoryError

Shaun Edwards edwards8 at gmail.com
Tue Jul 8 23:36:14 CEST 2008


Hello, I'm still a bit new to all of this, and am extremely happy with PIL.
However, I'm ending up with a slight memory issue.  I'm converting large tif
files (ranging from 400 - 1500 mb in size) to much smaller jpg files, in
large batches.  I open the tif file, resize it, and convert it to jpg.  I
then use the garbagecollector module in python to clear the memory.
However, after running 30-40 of these files through the script, it fails on
me, with a MemoryError.  The script is attached.  I'm curious if you might
have any information, tips, or advice that would assist me in getting it to
work.

-- 
~Shaun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20080708/8b1fbc12/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image_convertor.py
Type: text/x-python
Size: 1613 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/image-sig/attachments/20080708/8b1fbc12/attachment.py>


More information about the Image-SIG mailing list