From 0b7aa6135e6039a3b7f1a377ec1d719ccbf49de8 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 29 May 2013 06:49:02 +0200 Subject: [PATCH] cwebp requires png, so be it --- misc/tools/cached-converter.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/misc/tools/cached-converter.sh b/misc/tools/cached-converter.sh index 413e148d..09c04245 100755 --- a/misc/tools/cached-converter.sh +++ b/misc/tools/cached-converter.sh @@ -251,8 +251,8 @@ reduce_jpeg2_webp() ia=$1; shift o=$1; shift; shift # this one MUST run - convert "$i" "$ia" -compose CopyOpacity -composite -type TrueColorMatte "$tmpdir/x.tga" && \ - cwebp $1 "$tmpdir/x.tga" -o "$o" + convert "$i" "$ia" -compose CopyOpacity -composite -type TrueColorMatte "$tmpdir/x.png" && \ + cwebp $1 "$tmpdir/x.png" -o "$o" } reduce_jpeg_jpeg() @@ -341,7 +341,8 @@ reduce_rgba_webp() { i=$1; shift; shift o=$1; shift; shift - cwebp $1 "$i" -o "$o" + convert "$i" "$tmpdir/x.png" && \ + cwebp $1 "$tmpdir/x.png" -o "$o" } has_alpha() -- 2.39.2