X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=thumbnail.sh;h=8698627f37a538efd72e728100fad5a307ed4031;hb=4c469ef53af984583e8ccb4b29d051c52bba8172;hp=d1b5ff5482edfefae707cf1d19eeb50359c4f769;hpb=b1ed234e9aef333270a969676a1bce8aaf4be730;p=serve0 diff --git a/thumbnail.sh b/thumbnail.sh index d1b5ff5..8698627 100644 --- a/thumbnail.sh +++ b/thumbnail.sh @@ -29,11 +29,12 @@ gen_thumb(){ printf '' \ | mplayer -input nodefault-bindings -nosound -benchmark \ -noconfig all -really-quiet \ - -vf scale=320:-2,tile=10:1:10:0:0 \ - -vo jpeg:quality=96:outdir="${tmp}"\ + -vf expand=:::::16/9,scale=320:-2,tile=10:1:10:0:0 \ + -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 }