I have a wiki/blog (Dokuwiki) that displays selected pictures from my main pictures store.
My pictures are stored in a <YEAR>/<MONTH>/<DAY> hierarchy and I have a script that searches for references to a specific date in the wiki and, if/when found, it copies the .jpg files to the appropriate place in the wiki.
This is OK with the wiki software running on my desktop machine (though the image size does make the images rather slow to load) but now I want to run the wiki on a hosting service and the size of the images is taking up too much disk space.
Is there any simple, automated way I can shrink the pictures? I don't want to have to specify a size for every one of them, I just want to shrink them to a 'reasonable' size.
I can fairly easily add a command (or two) to my script that does the copy, e.g. an ImageMagick 'convert' but how to set the amount of shrinkage?