Command builder
Choose what you want and copy the generated command. It mirrors every flag in the CLI reference and warns about invalid combinations.
imgsqz photo.png How it maps to the docs
Section titled “How it maps to the docs”- Format →
-f, --format· Format behavior - Quality →
-q, --quality· Compressing images - Width / Height / Fit → Resizing & fit modes
- Output → Output paths & naming
- Replace → Replacing files in place
- No-strip-metadata → Metadata & orientation
Once you’ve got a command you like, drop it into an npm script or CI step.