Here’s the scenario – you have a large number of photos imported from your camera and they are all massively oversized for upload to the Web. If you are stuck on an ADSL connection like myself uploading is terribly slow so ideally you want to pre-process the images before uploading them.
Well the good news is if you are using OS/X there is a command line script you can use to do this:
sips ( scriptable image processing system). I came across this completely by accident but it’s a really handy tool.
Have a look at the manual pages but essentially if you want to resize an image to a maximum height / width of 960px (depending on which is largest) and preserve the aspect ratio you simply:
sips -Z 960 my_image.jpg