From e352f4224bd6f2ab14af103ca3237749f27ce54c Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Tue, 25 Apr 2023 20:59:00 -0400 Subject: feat: include useful scripts --- scripts/convert.sh | 6 ++++++ scripts/serve.sh | 2 ++ 2 files changed, 8 insertions(+) create mode 100755 scripts/convert.sh create mode 100755 scripts/serve.sh diff --git a/scripts/convert.sh b/scripts/convert.sh new file mode 100755 index 0000000..97f6d9b --- /dev/null +++ b/scripts/convert.sh @@ -0,0 +1,6 @@ +#!/bin/sh +[ -z "$1" ] && exit 1 +basename=${1%.*} +basename=${basename##*/} +magick "$1" -resize 480x ./assets/"$basename".png +magick ./assets/"$basename".png ./assets/"$basename".webp diff --git a/scripts/serve.sh b/scripts/serve.sh new file mode 100755 index 0000000..e7f2b4c --- /dev/null +++ b/scripts/serve.sh @@ -0,0 +1,2 @@ +#!/bin/sh +php -S localhost:8000 -- cgit v1.2.3