This is my personal site and blog.
- Site framework: Hugo
- Theme: Terminal Theme
- Inspiration: @wilsonehusin's https://husin.dev/
- Vercel's hobby plan
Setup: brew install imagemagick
FILENAME=
INPUT_FILE=~/Downloads/${FILENAME}
OUTPUT_FILE=$(pwd)/static/img/$(dirname "${FILENAME}")/$(basename "${FILENAME}" | cut -d. -f1).webp
mkdir -p $(dirname "${OUTPUT_FILE}")
magick "${INPUT_FILE}" -quality 50 -resize 800x800 -strip -define webp:lossless=true "${OUTPUT_FILE}"