diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-02-06 16:20:55 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-02-06 16:20:55 +0100 |
commit | d9eb1efea06b6f8d3b65e4953ae2d5cad0c4fa41 (patch) | |
tree | a3fe99d6050e714d4d6d49472a54bec54ebf7a5f /gal | |
parent | 2ced3e9d3f2eb112105f8ece90485a2f0ee2357a (diff) | |
download | galier-d9eb1efea06b6f8d3b65e4953ae2d5cad0c4fa41.tar.gz galier-d9eb1efea06b6f8d3b65e4953ae2d5cad0c4fa41.zip |
Resize webp
Diffstat (limited to 'gal')
-rwxr-xr-x | gal | 2 |
1 files changed, 1 insertions, 1 deletions
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 |