Skip to content

Instantly share code, notes, and snippets.

@danielepiccone
Created January 29, 2019 09:49
Show Gist options
  • Save danielepiccone/5500bc262008415a7a8c536d7c9e0957 to your computer and use it in GitHub Desktop.
Save danielepiccone/5500bc262008415a7a8c536d7c9e0957 to your computer and use it in GitHub Desktop.
Sample images to different sizes
#!/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