From: Neil Ellwood on
On Mon, 05 Oct 2009 15:21:55 -0500, Richard 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?
>
> - Richard Kimber

Gimp



--
Neil
Reverse 'r and a' Delete 'l'
From: Richard Kimber on
On Mon, 05 Oct 2009 21:56:07 +0100, Paul Martin wrote:

> In article <20091005214632.22bd2e35(a)debian>,
> Folderol wrote:
>> On Mon, 05 Oct 2009 15:21:55 -0500
>> Richard Kimber <richardkimber(a)btinternet.com> 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
>
> for files in *.jpg; do convert $files -resize x700
> ${files%%.jpg}_700.jpg; done
>
> You forgot to specify both an input and output file.

Ah. I knew I was doing something stupid.

Many thanks for all the responses.

- Richard
--
Richard Kimber
Political Science Resources
http://www.PoliticsResources.net/
From: Maurice Batey on
On Mon, 05 Oct 2009 15:21:55 -0500, Richard Kimber wrote:

> Is there another tool that might do it?

I use 'mogrify' (part of imagemagick), e.g. on all .jpg's in a
directory:

mogrify -resize 1024x768! ~/mypictures/a3tunnel/*.jpg

I also have a (Rexx) script for sequentially numbering (with optional
name prefix) .jpg files, so as to have more meaningful filenames.

--
/\/\aurice
(Replace "nomail.afraid" by "bcs" to reply by email)