dotfiles/tools/resize-images

10 lines
337 B
Text
Raw Normal View History

2019-12-16 10:19:52 +00:00
#!/usr/bin/env bash
set -e
set -o pipefail
2018-01-13 11:00:44 +00:00
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