Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python-fu : close xcf/clear memory
#1
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?
Reply
#2
If you're doing a gimp-image-new, then a gimp-image-delete should clean up
Reply
#3
Or in python, gimp.delete(image)
Reply
#4
Thanks, I'll try it out
Reply


Forum Jump: