]> git.plutz.net Git - serve0/commitdiff
increased thumbnail quality
authorPaul Hänsch <paul@plutz.net>
Wed, 18 Jul 2018 22:46:33 +0000 (00:46 +0200)
committerPaul Hänsch <paul@plutz.net>
Wed, 18 Jul 2018 22:46:33 +0000 (00:46 +0200)
thumbnail.sh

index bf5964a0186a8a94409bde87308cb170368691a1..6117de22840d2021b4038ddc19d6f8a63550afc0 100644 (file)
@@ -25,15 +25,15 @@ __EOF
               -noconfig all -really-quiet \
               -frames 1 -ss "$((cnt * chunk))" \
               -vf "framestep=I,scale=${w}:-2" \
-              -vo "jpeg:outdir=${tmp}" \
+              -vo "jpeg:quality=100:outdir=${tmp}" \
               "$file" 2>&-
     mv "${tmp}/00000001.jpg" "${tmp}/_${cnt}.jpg"
   done
   printf '' \
   | mplayer -input nodefault-bindings -nosound -benchmark \
             -noconfig all -really-quiet \
-            -vf scale=127:-2,tile=2:2:4:0:2 \
-            -vo "jpeg:quality=60:outdir=${tmp}"\
+            -vf scale=159:-2,tile=2:2:4:0:2 \
+            -vo "jpeg:quality=90:outdir=${tmp}"\
             "mf://$tmp/_*.jpg" 2>&-
 
   mv "${tmp}/00000001.jpg" "$thumb"