View Single Post
Old 27th October 2017
Beastie Beastie is offline
Daemonology student
 
Join Date: Jan 2009
Location: /dev/earth0
Posts: 335
Default

Quote:
Originally Posted by GarryR View Post
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
__________________
May the source be with you!
Reply With Quote