return self::_optimizeSVG($in, $out);
}
- public static function optimizeSVGStr($in, $fix = false)
+ public static function optimizeSVGStr($in, $fix = false, $opt = '')
{
$dir = Files::mkdir(sys_get_temp_dir() . '/svgopt');
$infile = Files::tempnam($dir, 'svgopt') . '.svg';
file_put_contents($infile, $in);
$outfile = Files::tempnam($dir, 'svgopt') . '.svg';
- self::optimizeSVG($infile, $outfile);
+ self::optimizeSVG($infile, $outfile, $opt);
unlink($infile);
if ($fix) {
$fixed = Files::mkdir(sys_get_temp_dir() . '/svgopt-fixed');