Problems resampling using convert

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

Problems resampling using convert

Post by Slowfamily »

Hello,

I have a script that runs convert from the command line to resample a large number of images to 72 dpi to make them more web friendly. On some images, however, the processing stalls and consumes most of the available memory on my computer. I've tried waiting but usually end up having to kill the process. Other images resample with no problem. Any ideas what may be causing this? This is the command the script runs:

Code: Select all

usr/bin/convert -quality 80 -resample 72x72 $file_1 $file_3
Also, I see that other command line tools, such as mogrify, also have resample options. Is there any difference between the two?

Thanks in advance!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problems resampling using convert

Post by magick »

ImageMagick relies on the image to return a reasonable resolution value but sometime images lie. If it returns say 1 as the resolution, ImageMagick will resize your image by a factor of 72 to achieve the 72x72 resolution. Check your files and make sure they return an accurate resolution before resampling it.
Slowfamily

Re: Problems resampling using convert

Post by Slowfamily »

Wow, thanks for the quick response!
Post Reply