Please, here is my little code for creating thumbnails of pictures saved in a folder named 'pictures', and saving them in another folder named 'thumbs'.
#!/bin/bash for i in *.jpg do convert -thumbnail 100 $i thumbs/$i done
However, there two things the program doesn't do:
1) It does not retain the name of the pictures in the thumbnail. For instance, I would want it to generate a thumbnail with the name pic.jpg for a picture named pic.jpg
2) Also, when I run the program, i don't want it to generate the thumbnail for a picture it has already generated its thumbnail, unless that picture has been modified.
Any help will be very much appreciated.