Mercurial > hg > batmud > gmap2
comparison tools/makegmaps.php @ 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 | 695d01a321ec |
comparison
equal
deleted
inserted
replaced
279:0374836ed73a | 280:632e61498905 |
---|---|
632 $outMtime = file_exists($outFilename) ? filemtime($outFilename) : -1; | 632 $outMtime = file_exists($outFilename) ? filemtime($outFilename) : -1; |
633 | 633 |
634 echo "* ".$inFilename." -> ".$outFilename.": "; | 634 echo "* ".$inFilename." -> ".$outFilename.": "; |
635 if ($inMtime > $outMtime) | 635 if ($inMtime > $outMtime) |
636 { | 636 { |
637 $tmp = escapeshellcmd($cfg["binConvert"])." ".escapeshellarg($inFilename)." -scale ".escapeshellarg($scale."%")." -type Palette ".escapeshellarg($outFilename); | 637 $tmp = escapeshellcmd($cfg["binConvert"])." ". |
638 escapeshellarg($inFilename)." ". | |
639 "-scale ".escapeshellarg($scale."%")." ". | |
640 //"-type Palette ". | |
641 escapeshellarg($outFilename); | |
642 | |
638 passthru($tmp) == 0 or die("Error executing: ".$tmp."\n"); | 643 passthru($tmp) == 0 or die("Error executing: ".$tmp."\n"); |
639 echo "OK\n"; | 644 echo "OK\n"; |
640 } | 645 } |
641 else | 646 else |
642 echo "SKIPPED\n"; | 647 echo "SKIPPED\n"; |