resample creates large files in /tmp

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
twodown11
Posts: 1
Joined: 2018-04-18T11:59:25-07:00
Authentication code: 1152

resample creates large files in /tmp

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: resample creates large files in /tmp

Post 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.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: resample creates large files in /tmp

Post 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.
Post Reply