Skip to content

Releases: MathiasReker/php-svg-optimizer

8.2.3

31 Dec 18:49
fa5bc2f

Choose a tag to compare

Full Changelog: 8.2.2...8.2.3

8.2.2

19 Dec 22:13
6383222

Choose a tag to compare

Full Changelog: 8.2.1...8.2.2

8.2.1

09 Dec 21:39
aa4f5be

Choose a tag to compare

Full Changelog: 8.2.0...8.2.1

8.2.0

06 Dec 14:20
fe37406

Choose a tag to compare

Full Changelog: 8.1.0...8.2.0

8.1.0

04 Dec 21:01
07a802a

Choose a tag to compare

Full Changelog: 8.0.3...8.1.0

8.0.3

30 Nov 18:39
7df9896

Choose a tag to compare

Full Changelog: 8.0.2...8.0.3

8.0.2

25 Nov 16:27
a37e62a

Choose a tag to compare

Full Changelog: 8.0.1...8.0.2

8.0.1

17 Nov 20:26
525675e

Choose a tag to compare

Full Changelog: 7.3.0...8.0.1

8.0.0

17 Nov 19:36
ba09fcb

Choose a tag to compare

Breaking Changes (BC)

BC 1: Default Rules Are No Longer Applied Automatically

Previously, some optimization rules were applied by default. Now, no rules are applied automatically. You must explicitly enable them either by specifying them as before or with the new --with-all-rules flag or withAllRules() method.

$svgOptimizer = SvgOptimizerFacade::fromFile('path/to/source.svg')
    ->withAllRules()
    ->optimize()
    ->saveToFile('path/to/output.svg');

BC 2: Risky Rules Require Explicit Permission

Risky rules are no longer allowed without the --alow-risky flag or allowRisky() method. You must explicitly enable them.

$svgOptimizer = SvgOptimizerFacade::fromFile('path/to/source.svg')
    ->withRules(
        removeWidthHeightAttributes: true,
        removeUnsafeElements: true,
    )
    ->allowRisky()
    ->optimize()
    ->saveToFile('path/to/output.svg');

Full Changelog: 7.3.0...8.0

7.3.0

06 Nov 21:19
7a6e786

Choose a tag to compare

Full Changelog: 7.2.0...7.3.0