feat: jpg -> webp

This commit is contained in:
Pihkaal
2024-10-17 22:26:44 +02:00
parent 6214e923f8
commit bf806e7868
58 changed files with 18 additions and 1 deletions

13
normalize_imgs.sh Executable file
View File

@@ -0,0 +1,13 @@
#! /bin/bash
# This script take all images of Lilou and make sure they are 1024x1024 webp images
# It is meant to be run by me, because I manually put the images in the public folder
IMG_SZ=1024
for file in public/lilou/*.jpg; do
hash=$(md5sum "$file" | awk '{print $1}')
cwebp "$file" -resize $IMG_SZ $IMG_SZ -o "./public/lilou/${hash}.webp"
rm "$file"
done