Quote:
Originally Posted by GarryR
Something I wonder, how could I get it to add tmb to the name of the resized image.
So for example: parrot.jpg is parrot-tmb.jpg , the original still being parrot.jpg.
|
Code:
for file in *jpg; do
new_file=`echo $file | sed 's/.jpg$//'`
convert ... $file $new_file-tmb.jpg
jpegoptim ... $new_file-tmb.jpg
done