compund commands

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
geomcd
Posts: 3
Joined: 2012-11-20T09:06:12-07:00
Authentication code: 6789

compund commands

Post by geomcd »

Am having difficulty combining a series of operations. Each of the operations works when done by itself.

Using Ubuntu Linux 12.10, I want to resize a folder of images and also rename those images in sequence. That is, the folder contains (only) images numbered in sequence named IMG_0545.jpg to IMG_0742.jpg. The images are all 2400x1600. I want to resize them all to 600x400, and rename them sequentially, starting with the new name gl1.jpg.

Thanks very much for guidance.

~George
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: compund commands

Post by fmw42 »

Make two new folders, folder1 and folder1

Put all the images you want to convert and only those in folder1

cd to folder 1

convert * -resize 600x400 -scene 1 fullpath2/folder2/gl%d.jpg
geomcd
Posts: 3
Joined: 2012-11-20T09:06:12-07:00
Authentication code: 6789

Re: compund commands

Post by geomcd »

Fred,

Works like . . . Magick!

Also, looked at your scripts. A whole new realm to me. Spectacular.

Thanks very much!

~George
Post Reply