Resizing multiple image files at once
Ronny Haryanto
ronnylist at haryan.to
Sun Jan 15 01:41:15 UTC 2006
On Sunday 15 January 2006 12:27, J.Markoll wrote:
> Hi Ronny, if I say I'd like to read more precise explanations, would it
> be a problem ? yes I know difficult to be more precise. :(
>
> Example, should it look like:
> In a text editor,
>
> #!/bin/sh
> for img in *.jpg; do echo $img; mogrify -resize 640x480 $img; done
>
> then 'save as' (for ex: image-resize) and then, make it executable with
> chmod a+x
Joyce,
No problem. You could do as above (saving as a script), but I usually just
type one-liners like that in the shell directly. I had done that often enough
to remember the syntax :-)
One thing I forgot is to use quotes, just in case the files have spaces in
their names, like this:
for img in *.jpg; do echo "$img"; mogrify -resize 640x480 "$img"; done
> And also, according to your knowledge is there a first steps imagemagick
> documentation ?
Might want to check the website, I'm sure they have documentation. I only use
mogrify and convert, other than that I'm not too familiar with imagemagick.
Hope that answers your question.
Ciao,
Ronny
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060115/2f88e4d7/attachment.sig>
More information about the ubuntu-users
mailing list