svg / svgo

⚙️ Node.js tool for optimizing SVG files
https://svgo.dev/
MIT License
20.75k stars 1.38k forks source link

SVG Tiny 1.2 standard support #1261

Open guoyunhe opened 4 years ago

guoyunhe commented 4 years ago

Some software, like Qt, only supports SVG Tiny 1.2 standard instead of the full SVG 1.2 standard. The main difference is path data:

https://www.w3.org/TR/SVGTiny12/paths.html#PathData

In Dolphin (a Qt based file manager), SVGO optimzed svgs look broken:

image

stapelberg commented 4 years ago

This is also relevant for BIMI, which requires an SVG tiny 1.2 file: https://bimigroup.org/implementation-guide/

strarsis commented 3 years ago

@stapelberg: BIMI is interesting, good point! This is the link to the path specs of a 'Full' SVG: https://www.w3.org/TR/SVG/paths.html So now the differences have to be found out and converted in a svgo plugin.

SVG Tiny paths:

SVG 'Full' paths:

Each of these path operations may also differ between the two standards.