added binos page and webp support

This commit is contained in:
2023-06-02 22:22:59 -07:00
parent 1247b8bcfc
commit b2bd4d1a73
3 changed files with 28 additions and 0 deletions

12
scripts/make_webp.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
# Find all files of type PNG, JPEG, or TIFF
files=$(find ../hugo-content/static/test-img -type f -iname "*.png" -o -iname "*.jpg" -o -iname "*.tif")
# Loop through all the files in the directory
for file in $files; do
# Convert the file to WEBP
cwebp -resize 1500 0 $file -o "${file%.*}.webp"
# Delete old file
rm $file
done