removeStyles example

$use->removeAttribute('fill');
            }
            if ($fillrule) {
                $use->setAttribute('fill-rule', $fillrule);
            } elseif ($cleanup) {
                $use->removeAttribute('fill-rule');
            }

            $svg->getDocument()->addChild($use);

            if ($cleanup) {
                $this->removeStyles($svg->getDocument());
            }

            file_put_contents($path . 'processed/' . basename($file)$svg->toXMLString(false));

            if ($verbose) {
                $this->io->writeln('Icon ' . $file . ' processed');
            }
            ++$processedCount;
        }

        $this->io->success('Processed ' . $processedCount . ' icons');

        
Home | Imprint | This part of the site doesn't use cookies.