Created
June 5, 2021 16:43
-
-
Save gerrgg/1841a2c269723886f1cc6b8e308d45ca to your computer and use it in GitHub Desktop.
// use sqooush CLI to automatically compress and resize images within a folder.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for FILE in *; do squoosh-cli --mozjpeg 50 --resize '{width: 1000, height: 1000}' "$FILE"; done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Useful for compressing/resizing a folder of huge images.