Compresto, from your Terminal
Compress and convert videos, images, GIFs and PDFs with one command. Same quality presets as the Mac app, ready for scripts and batch jobs.
brew install dqhieu/tap/comprestoFor macOS, on Apple silicon and Intel. Uses your Compresto license.
$ compresto movie.mov✓ movie.mov → movie_compressed.mov 48.2 MB → 9.1 MB (−81%) 12.3s$ compresto *.png --to webp --quality good✓ hero.png → hero.webp 1.8 MB → 212 KB (−88%) 0.3s✓ team.png → team.webp 2.4 MB → 301 KB (−87%) 0.4sDone: 2 compressed · saved 3.7 MB (88%)$ compresto demo.mp4 --to gif --gif-width 480✓ demo.mp4 → demo.gif 4.6 MB → 469 KB (−90%) 0.4s
Everything the app compresses, in one command
Videos
Shrink MP4, MOV, MKV and more with H.264 or H.265. Trim, resize, drop the audio or aim for an exact file size.
Images
Compress JPEG, PNG, WebP and AVIF, and convert HEIC, TIFF and more. Transparency is kept wherever the format allows.
GIFs
Turn any video into a high-quality GIF, or make the GIFs you already have smaller.
PDFs
Four quality levels, from print-ready to as small as possible.
Whole folders
Point it at a folder, include the subfolders, and work on several files at the same time.
Made for scripts
JSON output, clear exit codes, and a dry run that shows exactly what will happen first.
Up and running in a minute
- 1
Install
Homebrew installs compresto and the tools it relies on.
brew install dqhieu/tap/compresto - 2
Sign in
Use your Compresto license. If the Mac app is activated, you are signed in straight away.
compresto auth login - 3
Compress
Pass files or folders. The result is saved next to the original.
compresto movie.mov
A few things you can do
Convert screenshots to WebP
compresto *.png --to webpMake a GIF for a pull request
compresto demo.mov --to gif --gif-width 640 --gif-fps 15Fit a video under 8 MB
compresto clip.mp4 --target-size 8MBCut a clip down to 720p without audio
compresto talk.mov --start 0:10 --end 0:25 --resolution 720 --no-audioShrink a scanned PDF
compresto scan.pdf --pdf-quality lowCompress a whole folder in place
compresto ~/Screenshots --recursive --replace
See every option in the documentation.
One license for the app and the command line
The command-line tool uses your Compresto license. On a Mac where the app is already activated, it shares that activation, so it doesn’t take up another device.
Your files stay on your Mac
Compression happens locally, using FFmpeg, Gifski, pngquant, libavif and Ghostscript under the hood. Nothing is uploaded, and a dry run shows the exact commands before anything changes.
compresto movie.mov --dry-runFrequently asked questions
Do I need a Compresto license?
Yes. The command-line tool uses the same license as the Mac app, so if you already own Compresto there is nothing else to buy. Setapp subscriptions do not include a license key and cannot be used with it.
Does it use another device on my license?
Not if the Mac app is already activated on that Mac. Running compresto auth login shares the app’s activation, so the two count as one device. On a Mac without the app, signing in uses one device.
Does the Mac app need to be open or installed?
No. The command-line tool runs on its own, which makes it a good fit for scripts, scheduled jobs and remote sessions.
Are my files uploaded anywhere?
No. Everything is compressed on your Mac. The only thing sent over the network is a periodic check of your license key.
Which Macs does it run on?
Any Mac that runs Homebrew, on both Apple silicon and Intel. The command-line tool is not available for Windows or Linux.
How is it different from the Mac app?
It uses the same quality presets and gives comparable results. EPUB and SVG files, image metadata, transparent videos, presets and folder monitoring are only in the Mac app for now.
Install it with Homebrew
brew install dqhieu/tap/comprestoThen run compresto auth login. Read the installation guide →