Skip to content

Feature Request: Add Option to Remove Invisible Items #2043

@ViniciusFXavier

Description

@ViniciusFXavier

Is your feature request related to a problem? Please describe.
Currently, there is no easy way to remove invisible items in SVGs using SVGO. This can be frustrating, especially when optimizing SVG files that contain elements with transparent color or rgba with alpha 0, which are not visible and only increase the file size unnecessarily.

Describe the solution you'd like
I would like an option added to SVGO to automatically remove invisible items, such as elements with transparent color or rgba with alpha 0. This would help further reduce the size of SVG files without losing any visible information.

Describe alternatives you've considered

  • Manually identifying and removing these elements, which can be time-consuming and error-prone.
  • Using custom scripts to clean these elements before passing through SVGO, but this adds an extra step to the optimization process.

Additional context
Adding a feature like this would significantly improve the workflow for developers and designers working with SVGs, making the SVGO tool even more efficient.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedIssue is approved and anyone is encouraged to resolve it in a new pull request.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions