Not able to delete magick-**** processing files

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Locked
Vishwas
Posts: 1
Joined: 2019-11-17T20:09:28-07:00
Authentication code: 1152

Not able to delete magick-**** processing files

Post by Vishwas »

The im4java library is throwing an exception while trying to process a 45 MB JPG image. The "magick-****" processing files of around 9.9 GB are getting created and due to the exception thrown they are not getting deleted. I have two queries here.

1) Why is an exception thrown while trying to process a 45 MB file when 30 MB files are getting processed fine.

2) According to the code the temp files and the "magick-****" processing files are supposed to be created at the same location for example /usr/local/tomcat/temp but the "magick-****" files are getting created elsewhere. Due to this we are not able delete the "magic-****" processing files. This is causing the disk space to run out and we are facing issues while processing other small sized files.

Any help or comments from your side would be greatly appreciated.

Thanks,
Vishwas.

User avatar
magick
Site Admin
Posts: 11254
Joined: 2003-05-31T11:32:55-07:00

Re: Not able to delete magick-**** processing files

Post by magick »

See https://imagemagick.org/script/architec ... tera-pixel. Set your temporary path to a place that has plenty of free space. To ensure the temporary files are removed, set the MAGICK_SYNCHRONIZE environment variable or cache:synchronize define.

Locked