dotfiles/tools/resize-images
2019-12-16 10:20:22 +00:00

9 lines
337 B
Bash
Executable file

#!/usr/bin/env bash
set -e
set -o pipefail
for file in *.jpg; do convert $file -resize 1000x1000 -quality 95 $file > /dev/null 2>&1; done
for file in *.JPG; do convert $file -resize 1000x1000 -quality 95 $file > /dev/null 2>&1; done
for file in *.png; do convert $file -resize 1000x1000 -quality 95 $file > /dev/null 2>&1; done
exit 0