New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A mistake when i try to process a big number of images,about resource destory #361
Comments
Hi, cmd = 'sudo rm /../../tmp/magick-*'
arg = shlex.split(cmd)
arg = arg[:-1] + glob.glob(arg[-1])
p = subprocess.Popen(arg) Like this, after each file i delete magick-xxxx to avoid problem of memory! |
but when code running,can't delete this temp files,system remind that there another process are use them. |
@cdEthan Are you able to test this again with the latest |
Just to compound on this, it looks like this is still an issue.
Here's a code snippet and the Traceback. I didn't see any of the other folk here post tracebacks, so maybe this will help? Unfortunately the only alternative for me, for now, is to use Also worth noting that if I use
Exception thrown:
|
Closing this out. The 0.6.0 release should help with this as the clean--up routines will be called during Python's shutdown/unload pipeline. However,
|
I try to process PDF to JPG,i find many file which name like'magick-xxxxxxxx' in '/local/tmp'
i think is destory() didn't work
my code:
with(Image(filename=file, resolution=300)) as img:
images = img.sequence
pages = len(images)
for i in range(pages):
images[i].type = 'truecolor'
save_name = save_dir + file_name_prefix +'_'+ str(i+1) + '.jpg'
img.alpha_channel = False
Image(images[i]).save(filename=save_name)
in resourse.py,said that the resourse will destory automatic, when project start, file 'magick-xxxxxx' desory correctly,but after process some image,it didnt destory,and it is coincidental which 'magick-xxxxxx' file is 33984KB
The text was updated successfully, but these errors were encountered: