RazrFalcon / svgcleaner

svgcleaner could help you to clean up your SVG files from the unnecessary data.
GNU General Public License v2.0
1.63k stars 94 forks source link

fill="rgba(0,0,0,255)" from usvg as Error: invalid color #249

Open JoKalliauer opened 3 years ago

JoKalliauer commented 3 years ago

I processed a file with (usvg)[https://github.com/RazrFalcon/resvg/tree/master/usvg] and the result was fill="rgba(0,0,0,255)" however this "micro"-SVG is not accepted by svgcleaner.

A mirco-SVG should be understood by everyone. If svgcleaner does not understand it is is either not a good choice for micro-SVG or it is a svgcleaner-bug.

Example.svg

RazrFalcon commented 3 years ago

or it is a svgcleaner-bug

This. svgcleaner is abandonware.

rgba is required by the SVG 2 spec. Not much we can do about it. Maybe we could flatten alpha somehow. But I'm not sure how lossless it is.