Cleanup your photo library - batch compress your JPEG images
Cleaning out my hard drive tonight I noticed some bloat in my picture collection over the years (about 25Gb worth)
A quick google on how to compress these JPGs to free up a bit of hard disk space revealed a nice *nix tool for the job: jpegoptim
To download the latest version (v1.2.4) (my new GitHub project) go here: http://github.com/glennr/jpegoptim - this includes some minor fixes I made to help me get around an "Operation not permitted" error on OSX.
v1.2.3 is available from the original repo: http://freshmeat.net/projects/jpegoptim/
Jpegoptim works folder-by-folder, so if you have a large library like me, and want it to do all the hard work for you, here's the command
$ find . -iname *.jpg -exec jpegoptim -p -m60 --strip-all {} \;
This will do a recursive find of all jpg files & optimize to 60%, preserving original timestamps, overwriting the original files.
Share and Enjoy.

