🗜️ squish
Fast image & video compression CLI tool.
Install
pip install -e .
Requires FFmpeg for video compression:
brew install ffmpeg/sudo apt install ffmpeg
Usage
Compress an image
squish compress photo.jpg -q 60
squish compress photo.png -f webp -q 80
squish compress photo.jpg -r 1920x1080 -q 70
squish compress photo.jpg -r 50%
Compress a video
squish compress video.mp4 -q 70
squish compress video.mp4 -r 1280x720 -q 60
squish compress video.mov -f mp4 -q 75
Batch compress a directory
squish compress ./photos/ -q 60 -f webp
squish compress ./videos/ -q 70 -r 1280x720
Presets
squish compress photo.jpg -p web # 1920x1080, q80
squish compress video.mp4 -p mobile # 720x1280, q65
squish compress photo.jpg -p thumbnail # 400x400, q60
squish compress video.mp4 -p social # 1080x1920, q70
File info
squish info photo.jpg
squish info video.mp4
Options
| Flag | Short | Description |
|---|---|---|
--quality |
-q |
Quality 1-100 (default: 80) |
--resolution |
-r |
Target resolution: 1920x1080 or 50% |
--format |
-f |
Output format: jpg, png, webp, mp4, webm |
--preset |
-p |
Preset: web, mobile, thumbnail, social |
--output |
-o |
Custom output path |
--overwrite |
Overwrite existing files |
How quality maps to compression
Images
- 90-100: Near lossless, minimal size reduction
- 70-89: Good quality, noticeable size reduction
- 40-69: Decent quality, significant compression
- 1-39: Low quality, maximum compression
Videos (CRF mapping)
- quality 100 → CRF 15 (near lossless)
- quality 80 → CRF 23 (good quality)
- quality 50 → CRF 30 (medium)
- quality 1 → CRF 40 (low quality, small file)
Metadata
Release files for squish-cli 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| squish_cli-0.1.0.tar.gz | 8.5 kB | With provenance | Details for squish_cli-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| squish_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for squish_cli-0.1.0-py3-none-any.whl |
Total release size: 17.8 kB
Release files / squish_cli-0.1.0.tar.gz
| Download URL | squish_cli-0.1.0.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9394d612ae2b19ee30a139de679a19fb1ccac40fc04f04925c0ab18588ba82eb
|
|
BLAKE2b-256 checksum How to use checksums |
d1c659911ab636dd44190ed41035ef51b0fec6c9fe518becda19ccca157001c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 27, 2026.
Transparency logRelease files / squish_cli-0.1.0-py3-none-any.whl
| Download URL | squish_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
425c2aab0d544816aa89b9a421d764e665b44b4f9446b919c45592803898e367
|
|
BLAKE2b-256 checksum How to use checksums |
b20115ed3fa33fcfb26fd84f009864a7ecabe66a5ba741b5c4d9615207157986
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 27, 2026.
Transparency logSecurity for squish-cli 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for squish_cli-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 27, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.