Mercurial > hg > batmud > gmap2
changeset 280:632e61498905 gmap2
Do not use paletted conversion for intermediate files. It seems to make
newer ImageMagick versions sad. :S
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 16 Apr 2015 21:57:38 +0300 |
parents | 0374836ed73a |
children | f697708ba6d9 |
files | tools/makegmaps.php |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/makegmaps.php Thu Apr 16 21:57:15 2015 +0300 +++ b/tools/makegmaps.php Thu Apr 16 21:57:38 2015 +0300 @@ -634,7 +634,12 @@ echo "* ".$inFilename." -> ".$outFilename.": "; if ($inMtime > $outMtime) { - $tmp = escapeshellcmd($cfg["binConvert"])." ".escapeshellarg($inFilename)." -scale ".escapeshellarg($scale."%")." -type Palette ".escapeshellarg($outFilename); + $tmp = escapeshellcmd($cfg["binConvert"])." ". + escapeshellarg($inFilename)." ". + "-scale ".escapeshellarg($scale."%")." ". + //"-type Palette ". + escapeshellarg($outFilename); + passthru($tmp) == 0 or die("Error executing: ".$tmp."\n"); echo "OK\n"; }