This question already has an answer here:

I am looking for a way to compress jpeg images on a Mac from Terminal. Basically, a library like pngquant, except it is for jpeg format.

Are you aware of a software that does that?

marked as duplicate by klanomath, user3439894, fsb, bjbk, nohillside May 13 '17 at 9:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • The question reads as if you are looking to losslessly compress a jpg file - which of course cannot be done. All you can do is make it smaller by making it lossier. – Tetsujin May 12 '17 at 16:59

Use ImageMagick. Instructions for macOS binary installation are on the linked page.

compress -quality X% source.jpg result.jpg

X is a positive integer value (i.e. 85 for 85%); source and result are the original filename and the output filename.

Not the answer you're looking for? Browse other questions tagged .