You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 30, 2021. It is now read-only.
@jgneff--remove-metadata=no --remove-nonsvg-elements no --remove-nonsvg-attributes no
You should try
ubuntu@xenial:~$ ~/opt/svgcleaner-0.9.5/svgcleaner \
--indent=0 --remove-metadata=no --remove-nonsvg-elements no --remove-nonsvg-attributes no input.svg remove-metadata-no.svg
@RazrFalcon--remove-metadata=no should per default set --remove-nonsvg-elements no --remove-nonsvg-attributes no otherwise it is confusing, see also #141 (comment)
Thank you, @JoKalliauer. Now I get it. I didn't realize that the options were independent. I can understand how that might be useful, but the downside is that you then kind of need to understand all of the options to get it right, and there are a lot of them.
svgcleaner is a great tool, regardless. I ended up just letting svgcleaner remove the metadata, and I add it with sed afterwards, as shown below.
As you can see, I also add an XML declaration because of a bug in my old copy of ExifTool 10.10 (fixed in version 11.66), and I add a full font stack. By the way, this font stack works great with very good metric compatibility across systems. The only one that is slightly off is Android, which has no Arial-compatible font and uses Roboto for the sans-serif, but it's good enough and not worth converting the text to paths.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
svgcleaner removes the content of the
metadata
element even when the option--remove-metadata
is set tono
.The input file is the example from the documentation:
input.svg:
Removing the metadata works fine:
remove-metadata-yes.svg:
Yet even when
--remove-metadata=no
, svgcleaner removes the content of themetadata
element, leaving an empty element in its place:remove-metadata-no.svg:
I would like the final output file to contain my metadata for a Creative Commons license.
The text was updated successfully, but these errors were encountered: