Mailinglist Archive: opensuse (3337 mails)

< Previous Next >
Re: [SLE] image resizing
  • From: Ken Schneider <suse-list2@xxxxxxxxxxxxx>
  • Date: Sun, 23 Apr 2006 09:18:28 -0400
  • Message-id: <1145798308.11637.7.camel@xxxxxxxxxxxxxxxxx>
On Sun, 2006-04-23 at 14:29 +0200, Carlos E. R. wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> The Saturday 2006-04-22 at 23:43 -0400, Ken Schneider wrote:
>
> > I have this package installed (ImageMagick-6.2.3-4.2) but when I try to
> > run imagemagik I get the "command not found" error. Using pin on the
> > installed package I found the command convert and used that as follows:
>
> Just try "man imagemagick" (note the spelling typo) and you will see all
> its apps. If you use info or pinfo you can navigate them.
> >
> > convert -resize 640x480 oldname.jpg newname.jpg
> >
> > I guess I'll need to write a small script as it will not allow
> > wildcards.
>
> Yes, it does; read the man:
>
> ] To create a visual image directory of all your JPEG images, use:
> ]
> ] convert 'vid:*.jpg' directory.miff
>
> You just have to quote them so that the shell does not see the wildcards.
> Remember shell expansion...
>
>
I ended up using this:

for I in `ls -1 *.JPG`;do convert -resize 640x480 ${I} ${I};echo ${I};done

Which worked great, converted about 200 photos in less then a minute.
Didn't care about over writing as the originals are on a CD.

--
Ken Schneider
UNIX since 1989, linux since 1994, SuSE since 1998


< Previous Next >