0.8.0
Two things the command line could do reach the Finder menu.
A PDF goes through Shrink and Shrink to a Quality Target. The pictures inside it are re-encoded, any above 150 dpi on the page are downscaled to it, the document's own record of who wrote it and with what is dropped, and the file is rewritten in place. A fax-coded page, a JPEG 2000 image or a CMYK image inside it is left exactly as it was. Measured on a 665 KB PDF wrapping one photograph: 124 KB through Shrink, 165 KB through the quality target.
Squint: Convert to AVIF is a new entry. It takes a JPEG, PNG, HEIC, WebP or SVG and writes name.avif beside it, at the picture's own size, searched to the quality target the way the Quality entry is; the original is not touched. Measured: a 662 KB JPEG became a 262 KB AVIF, a 7.8 MB PNG a 506 KB one, a 340 KB HEIC a 108 KB one, all at their source dimensions. An AVIF handed to it is refused rather than written over.
The C interface gains squint_optimize_as, which names the output format; a code it does not know is refused rather than read as JPEG. The application now decides from the bytes of a result, not from what was asked for, whether it may replace the original: only a file of the same kind ever does.
Changes: #77.
Apple silicon, macOS 14 or later. Signed and notarized.
SHA-256
53431584b7b4460858d8a3789112bd05d64d20c2307b084280c8287247b818af Squint-0.8.0.dmg
50c57f0e5e80ee70c1af82600910d7aec0afa358a811883f7e2f156cae085fb6 Squint-0.8.0.zip