blog/scripts/optimize.sh

10 lines
220 B
Bash
Raw Normal View History

2021-09-20 03:40:11 +00:00
#!/bin/sh
2021-12-31 07:37:45 +00:00
set -x
2021-09-20 03:40:11 +00:00
# Build to optimize images and not much else if im being honest
mkdir -p output/
for f in "$@"; do
convert -resize 900x $f output/`basename $f`
convert -strip -quality 85 $f output/`basename $f`
done