X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=thumbnail.sh;h=5575c3723f6e0080ff8c1ce029d9a490123683a4;hb=d596aba5c45a148ca789ccda79464b8f5d4478b4;hp=f6d212ca8bedb5845d2841ed2151aa31206ff61f;hpb=8fa27d850ad8f2577a6ce94f895ec1bca88e3bfa;p=serve0 diff --git a/thumbnail.sh b/thumbnail.sh index f6d212c..5575c37 100644 --- a/thumbnail.sh +++ b/thumbnail.sh @@ -13,10 +13,10 @@ gen_thumb(){ | sed -rn 's:ID_LENGTH=(.*)(\..*)$:\1:p;' \ )" - chunk="$((${l:-10} / 5))" + chunk="$((${l:-10} / 11))" tmp="$(mktemp -d)" - for cnt in 1 2 3 4; do + for cnt in 1 2 3 4 5 6 7 8 9 10; do printf '' \ | mplayer -input nodefault-bindings -nosound -benchmark \ -noconfig all -really-quiet \ @@ -29,8 +29,8 @@ gen_thumb(){ printf '' \ | mplayer -input nodefault-bindings -nosound -benchmark \ -noconfig all -really-quiet \ - -vf scale=159:-2,tile=2:2:4:0:2 \ - -vo jpeg:quality=96:outdir="${tmp}"\ + -vf expand=:::::16/9,scale=320:-2,tile=10:1:10:0:0 \ + -vo jpeg:quality=85:outdir="${tmp}"\ "mf://$tmp/_*.jpg" 2>&- mv "${tmp}/00000001.jpg" "$thumb"