Skip to content

Instantly share code, notes, and snippets.

@gerrgg
Created June 5, 2021 16:43
Show Gist options
  • Save gerrgg/1841a2c269723886f1cc6b8e308d45ca to your computer and use it in GitHub Desktop.
Save gerrgg/1841a2c269723886f1cc6b8e308d45ca to your computer and use it in GitHub Desktop.
// use sqooush CLI to automatically compress and resize images within a folder.
for FILE in *; do squoosh-cli --mozjpeg 50 --resize '{width: 1000, height: 1000}' "$FILE"; done;
@gerrgg
Copy link
Author

gerrgg commented Jun 5, 2021

Useful for compressing/resizing a folder of huge images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment