Created
July 11, 2024 11:22
-
-
Save twhite96/e2a4f6af0da37692efb4237011657236 to your computer and use it in GitHub Desktop.
compress images in 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
function shrink() { | |
for file in blog/*; | |
do magick -sampling-factor 4:2:0 -quality 85 -interlace JPEG -colorspace RGB "$file" "${file%.*}.jpg" | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment