run bash

A bash script:


files=`ls *.psf\d`
dirs="cnvt1"
mkdir $dirs    #
for file in $files
do 
  fname = `bashname $file`
  
  $var=`printf "convert %s %s/%s.psd\n" $file $dirs $fname` 
  Echo $var

done


See bash programming for syntax and to get this code running. 
This presents the idea

Frank 



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, February 20, 2007 4:28 PM
To: [email protected]
Subject: [magick-users] batch resizing with naming

my question is how do i take a folder full of images that are lets say. 
700 x700 RGB PSD format, and i want to take the files in there and batch
process each image in to 10 other sizes and 10 other directory's, how
would i do this keeping the naming convention of the original file? can
any one provide me with an example to get me started?

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to