1
0
mirror of https://github.com/svg/svgo.git synced 2026-01-27 07:02:06 +03:00
Files
svgo/docs/03-plugins/remove-metadata.mdx
2023-11-07 23:43:09 +00:00

31 lines
975 B
Plaintext

---
title: Remove Metadata
svgo:
pluginId: removeMetadata
defaultPlugin: true
---
Removes the [`<metadata>`](https://developer.mozilla.org/docs/Web/SVG/Element/metadata) element from the document.
Metadata doesn't effect rendering. From an optimization perspective, these can always be safely removed.
There may be cases you'd want to disable this plugin, as some SVGs include copyright and licensing information in the metadata. In particular, documents that reference the [Creative Commons](http://creativecommons.org/ns#) namespace.
:::info
You can learn more about referencing copyright and licensing on the [SVG Tiny 1.2 specifications](https://www.w3.org/TR/SVGTiny12/metadata.html#metadataElementExample), or by reading [The Creative Commons Rights Expression Language](https://opensource.creativecommons.org/ccrel/).
:::
## Usage
<PluginUsage/>
## Demo
<PluginDemo/>
## Implementation
* https://github.com/svg/svgo/blob/main/plugins/removeMetadata.js