From e6785c973c61cb822940111a2846b8163c58222b Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sun, 1 Apr 2012 08:01:33 +0200 Subject: [PATCH] Imagemagick: write good TGAs --- misc/tools/cached-converter.sh | 10 +++++----- misc/tools/compress-texture | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/misc/tools/cached-converter.sh b/misc/tools/cached-converter.sh index ff69cbb5..072d7731 100755 --- a/misc/tools/cached-converter.sh +++ b/misc/tools/cached-converter.sh @@ -204,7 +204,7 @@ reduce_jpeg2_dds() i=$1; shift ia=$1; shift o=$1; shift; shift - convert "$i" "$ia" -compose CopyOpacity -composite "$tmpdir/x.tga" && \ + convert "$i" "$ia" -compose CopyOpacity -composite -type TrueColorMatte "$tmpdir/x.tga" && \ pickdxta "$dds_tool" "$dds_sepalpha" "$tmpdir/x.tga" "$o" $1 } @@ -213,7 +213,7 @@ reduce_jpeg2_dds_premul() i=$1; shift ia=$1; shift o=$1; shift; shift - convert "$i" "$ia" -compose CopyOpacity -composite "$tmpdir/x.tga" && \ + convert "$i" "$ia" -compose CopyOpacity -composite -type TrueColorMatte "$tmpdir/x.tga" && \ pickdxta "$dds_tool" "$dds_prealpha" "$tmpdir/x.tga" "$o" $1 } @@ -273,7 +273,7 @@ reduce_rgba_dds() { i=$1; shift; shift o=$1; shift; shift - convert "$i" "$tmpdir/x.tga" && \ + convert "$i" -type TrueColorMatte "$tmpdir/x.tga" && \ pickdxta "$dds_tool" "$dds_sepalpha" "$tmpdir/x.tga" "$o" $1 } @@ -281,7 +281,7 @@ reduce_rgba_dds_premul() { i=$1; shift; shift o=$1; shift; shift - convert "$i" "$tmpdir/x.tga" && \ + convert "$i" -type TrueColorMatte "$tmpdir/x.tga" && \ pickdxta "$dds_tool" "$dds_prealpha" "$tmpdir/x.tga" "$o" $1 } @@ -306,7 +306,7 @@ reduce_rgb_dds() { i=$1; shift; shift o=$1; shift; shift - convert "$i" "$tmpdir/x.tga" && \ + convert "$i" -type TrueColor "$tmpdir/x.tga" && \ "$meprefix"compress-texture "$dds_tool" "$dds_noalpha" "$tmpdir/x.tga" "$o" $1 } diff --git a/misc/tools/compress-texture b/misc/tools/compress-texture index 5ee658c6..9e3b58e5 100755 --- a/misc/tools/compress-texture +++ b/misc/tools/compress-texture @@ -46,7 +46,7 @@ esac if [ -n "$fourcchack" ]; then fourcchack_dir=`mktemp -d` - convert "$src" -fx "u*u.a" "$fourcchack_dir/src.$ext" + convert "$src" -fx "u*u.a" -type TrueColorMatte "$fourcchack_dir/src.$ext" src="$fourcchack_dir/src.$ext" fi -- 2.39.2