Created
June 8, 2018 09:26
-
-
Save yglodt/f77aad61206677f7afb8c3eccc02baba to your computer and use it in GitHub Desktop.
Resize jpegs with fixed width
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
#!/bin/bash | |
mkdir -p small | |
for f in *.jpg; do | |
echo $f; | |
convert "$f" -quality 75 -resize 1000x "small/$f"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment