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
}
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
}
{
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
}
{
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
}
{
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
}
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