Created
December 3, 2024 22:42
-
-
Save yonixw/da682c951ec3634438907a01253918ef to your computer and use it in GitHub Desktop.
Resize all images in folder
This file contains hidden or 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
# install | |
sudo apt install graphicsmagick-imagemagick-compat | |
# in place convert | |
find . -name "*.jpg" | xargs -n1 mogrify -resize 25% | |
# save to other file | |
find . -name "*.jpg" | xargs -I{} convert -resize 25% "{}" "{}.small.jpg" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment