From d9eb1efea06b6f8d3b65e4953ae2d5cad0c4fa41 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Sat, 6 Feb 2021 16:20:55 +0100 Subject: Resize webp --- gal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gal b/gal index 80d6478..24da9fd 100755 --- a/gal +++ b/gal @@ -86,5 +86,5 @@ for f in $PHOTOS/*.{jpg,JPG,jpeg,JPEG,png,PNG}; do echo "Optimizing $filename" [ -f $f ] && convert -auto-orient -strip -quality $QUALITY -resize x$RESOLUTION "$f" "$OUTPUT/photos/$filename" && \ convert -auto-orient -strip -quality $QUALITY -resize x$THUMBNAIL_RESOLUTION "$f" "$OUTPUT/thumbs/$filename" && \ - cwebp -q $QUALITY "$OUTPUT/thumbs/$filename" -o "$OUTPUT/thumbs/${filename%.*}.webp" + cwebp -q $QUALITY -resize 400 0 $f -o "$OUTPUT/thumbs/${filename%.*}.webp" done -- cgit 1.4.1