I know
ImageMagick can do JPEG resizing and compression from the command line, and some folks use it to shrink images automatically for websites and so on. When it comes to backups, however, I save the originals, even if they are RAW files at over 10MB a pop. (You never cut a negative!

)