From 153a6ae9d5596c833fb02a84601d27cc951be809 Mon Sep 17 00:00:00 2001 From: shockrah Date: Sun, 19 Sep 2021 20:40:11 -0700 Subject: [PATCH] + Image optimizer script headline --- scripts/optimize.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 scripts/optimize.sh diff --git a/scripts/optimize.sh b/scripts/optimize.sh new file mode 100644 index 0000000..5e4e3d0 --- /dev/null +++ b/scripts/optimize.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +# 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