Page 1 of 1

resample creates large files in /tmp

Posted: 2018-04-18T12:05:01-07:00
by twodown11
We have certain images (JPG) that when converted with -resample create very large Magick files in /tmp. Trying to determine what about the jpeg image triggers creation of the tmp files. Other jpeg of similar size do not result in tmp file creation. Looking to identify what about jpeg might be triggering creation of these tmp files and tools(?) I can use to see if convert of specific jpeg will potentially trigger this creation

Re: resample creates large files in /tmp

Posted: 2018-04-18T12:46:50-07:00
by snibgo
I expect the pixel caches are being stored on disk, because you don't have enough memory or you have limited the use, eg in policy.xml.

The critical numbers will be: the input size (in pixels), the old density and the required resampling density.

Re: resample creates large files in /tmp

Posted: 2018-04-18T13:43:06-07:00
by fmw42
I often find it easier to get desired results by -resize the image to the desired pixel dimensions and then adding -density to assign the final density that you want that will make it print to the desired print size. Just an alternate to -resample.