I'm looking for a simple way to losslessly crop JPEGs on Mac OS X.
Particularly, is there some way to get Preview to perform a lossless crop?
I use Xee. It is so much better than preview for images (IMHO); especially since you can traverse images within the same folder by clicking the arrow buttons. All of the button short cuts are reprogrammable.
It supports lossless cropping and rotation. Just see the webpage.
If you like it, buy milksnake to help the developer out - I did.
This command worked for me:
jpegtran -crop WxH+X+Y infile.jpg outfile.jpg
While perhaps not lossless I found FFmpeg to also do quite well:
ffmpeg -i infile.jpg -filter crop=W:H:X:Y -qmax 1 outfile.jpg
Based on this answer, I can suggest using the command-line tool
jpegtran, the GUI-based Jpegcrop Windows program, or one of the many programs based on IJG jpegtran code (although not all of them support cropping).
If you don't mind the result in a different file format. You can use Preview. Export the JPEG to TIFF, then crop the TIFF file as normal. If you would prefer the result to be a JPEG file you will have to use third party software.
I you are worried about "lossless" - don't use jpg. Every time you open one, and then save it - you are losing some data - even at the highest setting. If anyone disputes this, just open an untouched image in PS (for instance), and then save it and open it several times at the highest setting. You will notice artifacts. (Magnify the file several times and compare with the original.)
So just crop it and save it in preview. There will be almost imperceivable loss.