Skip to content

chrisyxlee/nichijou

Repository files navigation

nichijou

This is my personal site and blog.

tech

deploys

images

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}"