jdriscoll/django-imagekit — Issue #92: ikflush can cause a MemoryError very quickly when working with large files
Author: pwfff
Created: 2012-02-08 15:56:37+00:00
State: open

I was able to fix this by importing gc, and adding a gc.collect() at the end of the 'for spec_file in get_spec_files(obj):' loop in ikflush.py.

I also found it annoying that an exception on one bad file would kill the whole process, so I added a try/except/pass around 'spec_file.generate(false)'.