Created
January 29, 2019 09:49
-
-
Save danielepiccone/5500bc262008415a7a8c536d7c9e0957 to your computer and use it in GitHub Desktop.
Sample images to different sizes
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 | |
image=$1 | |
sizes="1000 5000 7500 10000" | |
if test -z "$image"; then | |
echo "Missing image file" | |
exit 1 | |
fi | |
for size in $sizes; do | |
convert "$image" -resize "${size}x${size}" "resized_${size}_${image}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment