]> _ Git - fluidbook_tools.git/commitdiff
wip #6750
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 23 Feb 2024 16:36:55 +0000 (17:36 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 23 Feb 2024 16:36:55 +0000 (17:36 +0100)
src/SVG/SVGTools.php

index defb0ab0215064cac3597c666c34e32f7b6bc378..70c007fc2f7019651719060c4b9d5ca76b03ade2 100644 (file)
@@ -35,7 +35,7 @@ class SVGTools
         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');
@@ -45,7 +45,7 @@ class SVGTools
         $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');