diff options
-rwxr-xr-x | scripts/convert.sh | 6 | ||||
-rwxr-xr-x | scripts/serve.sh | 2 |
2 files changed, 8 insertions, 0 deletions
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 |