A Mac-only rotation-based compression tool for (potentially) superior compression compared to other tools' default implementations.
First make strawberry.sh
executable by running:
chmod +x strawberry.sh
Next, run strawberry on your image. The tool creates a newly compressed image, leaving the input image unmodified.
./strawberry.sh <input.jpg>
The quality of the jpeg can be determined using ImageMagick like so:
identify -format "%Q" <input.jpg>
ImageMagick
magick <input.jpg> -quality 93 <output-magick.jpg>
sips
sips -s formatOptions 75 <input.jpg> --out <output-sips.jpg>