refactor: rewrite in Go

NOTE: docker not working anymore
This commit is contained in:
Pihkaal
2024-11-12 16:02:02 +01:00
parent 55c43df2a7
commit 85eac55045
99 changed files with 256 additions and 11762 deletions

View File

@@ -6,8 +6,9 @@
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"
hash=$(md5sum "$file" | awk '{print $1}')
out="./public/lilou/${hash}.webp"
cwebp "$file" -resize $IMG_SZ $IMG_SZ -o "$out"
magick "$out" -rotate 90 "$out"
rm "$file"
done