sprite from svg is not working in Version 1.2021.12

0 votes
asked Oct 16, 2021 in Bug by cilerler (200 points)
edited Oct 16, 2021 by cilerler

java -jar plantuml.jar -encodesprite 16z elastic.svg


Exception in thread "main" java.lang.NullPointerException
        at net.sourceforge.plantuml.sprite.SpriteUtils.encodeCompressed(SpriteUtils.java:77)
        at net.sourceforge.plantuml.Run.encodeSprite(Run.java:305)
        at net.sourceforge.plantuml.Run.main(Run.java:124)

on Windows

1 Answer

+1 vote
answered Oct 16, 2021 by The-Lu (67,000 points)
selected Oct 16, 2021 by cilerler
Best answer

Hello C.,

It seems that '-encodesprite' command works only on PNG file.

See also here:

And another script here:

And for SVG sprite request, see here:

If that can help,

commented Oct 16, 2021 by cilerler (200 points)
Thank you very much!