Skip to content

Optimize SVG files #246

@MathiasReker

Description

@MathiasReker

I noticed your project, and I’d like to suggest using my PHP library to automatically optimize them the SVG files. It’s designed to reduce SVG size while preserving visual quality, and it integrates easily into PHP projects.

Here’s a minimal usage example:

<?php

declare(strict_types=1);

require_once __DIR__ . '/vendor/autoload.php';

use MathiasReker\PhpSvgOptimizer\Service\Facade\SvgOptimizerFacade;

$content = '<svg>...</svg>';

$content = SvgOptimizerFacade::fromString($content)->optimize()->getContent();

Link to the project: https://github.com/MathiasReker/php-svg-optimizer

Let me know if I can help. :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions