]> git.plutz.net Git - serve0/commitdiff
use interlaced jpeg as thumbnail
authorPaul Hänsch <paul@plutz.net>
Thu, 10 Jun 2021 09:46:39 +0000 (11:46 +0200)
committerPaul Hänsch <paul@plutz.net>
Thu, 10 Jun 2021 09:46:39 +0000 (11:46 +0200)
thumbnail.sh

index 5575c3723f6e0080ff8c1ce029d9a490123683a4..8698627f37a538efd72e728100fad5a307ed4031 100644 (file)
@@ -30,10 +30,11 @@ gen_thumb(){
     | mplayer -input nodefault-bindings -nosound -benchmark \
               -noconfig all -really-quiet \
               -vf expand=:::::16/9,scale=320:-2,tile=10:1:10:0:0 \
-              -vo jpeg:quality=85:outdir="${tmp}"\
+              -vo jpeg:quality=100:outdir="${tmp}"\
               "mf://$tmp/_*.jpg" 2>&-
   
-    mv "${tmp}/00000001.jpg" "$thumb"
+    #mv "${tmp}/00000001.jpg" "$thumb"
+    convert "${tmp}/00000001.jpg" -interlace line -quality 85 "$thumb"
     rm -r "${tmp}"
   fi
 }