Page 1 of 1

Problems resampling using convert

Posted: 2008-02-20T12:00:17-07:00
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!

Re: Problems resampling using convert

Posted: 2008-02-20T12:04:54-07:00
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.

Re: Problems resampling using convert

Posted: 2008-02-20T12:59:00-07:00
by Slowfamily
Wow, thanks for the quick response!