Skip to content

Pattern disappears when optimizing using CLI 3.3.2 #2090

Open
@adriaanmeuris

Description

Describe the bug
When optimizing an SVG with a pattern that's referenced by a path, the resulting SVG does not contain the referenced pattern anymore.

To Reproduce

  1. Download input.svg
  2. Run svgo -i input.svg -o output.svg
  3. The resulting output.svg doesn't display anything anymore. File size of input is 224 KB, output is 233 bytes.

Expected behavior
The resulting SVG is displays the pattern.

Screenshots

Input Output
Image Image

Desktop

 SVGO Version: 3.3.2
 NodeJs Version: 20.15.1
 OS: macOS 15.2
 CPU: (12) arm64 Apple M2 Pro
 Memory: 95.89 MB / 16.00 GB
 Shell: 5.9 - /bin/zsh
Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions