Supported files
MP4, MOV, M4V, MKV and WebM videos keep their format; other videos are saved as MP4. HEIC, TIFF, BMP and DNG images are saved as JPEG. Use
--to to choose a different format.
Convert to another format
Use--to to change the format while compressing.
--to webp applies to the images and leaves the videos in their own format.
Transparency is kept when you write PNG, WebP or AVIF. JPEG can’t store it, so transparent areas are filled with white.
Quality
--quality (or -q) takes the same five levels as the Mac app.
PDFs have their own setting,
--pdf-quality, with best, high, balance (the default) and low.
Aim for a file size
To aim for a particular file size instead of a quality level, use--target-size. It works for videos and JPEG images.
When a file can’t get smaller
If the compressed file isn’t smaller than the original, Compresto keeps the original and reports the file as skipped. Videos and GIFs are first retried at a lower quality, as in the app.Trim and resize
Folders and batches
A folder compresses the supported files directly inside it. Add--recursive (or -r) to include subfolders, and --jobs (or -j) to work on several files at once.
_compressed are left alone, so you can run the same command again safely.
