Converting images
Jonathan Hudson
jh+ubuntu at daria.co.uk
Sat Oct 3 15:35:29 UTC 2009
On Sat, 3 Oct 2009 16:21:41 +0100, R Kimber wrote:
>I'm trying to resize some images in a directory to have a height of 700. I
>thought the imagemagick 'convert' would do it, so I did:
>
>for files in *.jpg; do convert -resize x700 $files; done
>
>but I got:
>convert: missing an image filename `img_1385.jpg' @
>wand/convert.c/ConvertImageCommand/2710
>
>for each image.
>
>What am I doing wrong? Is there another tool that might do it?
convert requires an output file, mogrify works "in place".
so
mogrify -resize x700 $files
or
convert -resize x700 $files new_$files
-jh
More information about the ubuntu-users
mailing list