blog/scripts/optimize.sh
2021-12-30 23:37:45 -08:00

10 lines
220 B
Bash

#!/bin/sh
set -x
# 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