Bash Script Help (ImageMagick)
Hi all!
I need some help with a bash script involving imagemagick. First let me explain what I am trying to accomplish with some background.
I have a directory called phpcars, inside this directory are thousands of directories named 00001, 00002, 00003 and so on. Inside these directories are 2 images (.jpg) and a subdirectory named thumbs. Inside the thumbs directory are the same exact 2 images (.jpg) as the directory above thumbs.
What I need to do is execute this command on all of the images in the subdir "thumbs" of all of the folders within phpcars (00001,00002,00003, ++):
mogrify -resize 160x120 *.jpg
So the script would start off in the phpcars dir, open up the 00001 dir, leave the photos inside this folder alone, open up the thumbs dir, and run the above mogrify command. Then go back to the phpcars dir, and perform the same step for 00002 directory and repeat a few thousand times.
Can anyone assist.
|