Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python-fu : close xcf/clear memory
I made a script that creates xcfs, does a few things and saves them. Problem is, it gradually fills up my memory when I execute it on many files.

The last command of the loop is pdb.gimp_xcf_save. So I wonder if I need to add a command to close the xcf of somehow clear the memory, but I didn't find such a thing.
Any idea?
If you're doing a gimp-image-new, then a gimp-image-delete should clean up
Or in python, gimp.delete(image)
Thanks, I'll try it out
Forgot to give my definite answer:
gimp.delete(image) worked, no more filled memory. Thanks!

Forum Jump: