SVG Compression spec

0 votes
asked Oct 27, 2022 in Question / help by Todd Musheno (2,680 points)

says it only supports a subset of svg directives...

Is this a requirement to a svg profile? SVG tiny maybe? If so could we call out what exactly is required?

1 Answer

–1 vote
answered Oct 27, 2022 by plantuml (295,000 points)

This is a requirement of our own basic implementation.

So only <path>, <circle>, <ellipse>, <text> tags are supported.

This may sound as a huge restriction if you don't compress/minify your svg file.

But if you do compress/minify your svg file, only those tags should be used, so it should not be an issue (well in theory :-)

commented Oct 28, 2022 by Todd Musheno (2,680 points)

compress/minify your svg file, only those tags should be used

There are tons of tools out there that compress to svg basic or svg tiny, as well as adobe has their own custom svg compression formats (yes they have more then one). I think there are exceptions to the rules listed in that (or are you suggesting you support adobes custom compression?).

Are you suggesting you cannot have anything but those tags, or that any compression tool will work?

commented Oct 28, 2022 by plantuml (295,000 points)
No, we won't support adobes custom compression, not even sure what they are exactly :-)

We currently are only supporting those tags, but we may add support for others is some compression tool need them. It simply depends on the complexity of this task: we don't want to build a full SVG parser inside PlantUML.

Just tell us if you have any non-working SVG file and we'll see what we could do :-)