summaryrefslogtreecommitdiff
path: root/scripts/convert.sh
blob: 97f6d9b54d9edb559b6c0e6035b3effcfb779d37 (plain) (blame)
1
2
3
4
5
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