]> git.plutz.net Git - serve0/commitdiff
limit thumb quality for faster page load
authorpaul <paul@plutz.net>
Wed, 1 Nov 2017 23:39:05 +0000 (23:39 +0000)
committerpaul <paul@plutz.net>
Wed, 1 Nov 2017 23:39:05 +0000 (23:39 +0000)
svn path=/trunk/; revision=190

helpers/genthumb.sh

index 9a0c64ad96ba7f12988caace7eafecf2b2f5e67c..2119d85dabf247885e468900012084b67322ac0b 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/zsh
 #!/bin/zsh
-# Copyright 2014 - 2016 Paul Hänsch
+# Copyright 2014 - 2017 Paul Hänsch
 #
 # This file is part of Serve0
 #
 #
 # This file is part of Serve0
 #
@@ -39,6 +39,6 @@ if [ -e "$video" -a \! -e "$thumb" ]; then
              -benchmark -vf framestep=I,scale="$width":-2 -ss "$(($cnt*$chunk))" "$video" >/dev/null 2>/dev/null
     mv "$tmp/00000001.jpg" "${tmp}/_${cnt}.jpg"
   done
              -benchmark -vf framestep=I,scale="$width":-2 -ss "$(($cnt*$chunk))" "$video" >/dev/null 2>/dev/null
     mv "$tmp/00000001.jpg" "${tmp}/_${cnt}.jpg"
   done
-  montage "${tmp}"/_[1234].jpg -tile 2x2+0+0 -geometry 100x75+3+3 -background '#000000' "${thumb}" 2>/dev/null
+  montage "${tmp}"/_[1234].jpg -tile 2x2+0+0 -geometry 100x75+3+3 -background '#000000' -quality 50 "${thumb}" 2>/dev/null
   rm -r "${tmp}"
 fi
   rm -r "${tmp}"
 fi