sprite from svg is not working in Version 1.2021.12

0 votes
asked Oct 16 in Bug by cilerler (180 points)
edited Oct 16 by cilerler

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

returns

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 by The-Lu (36,200 points)
selected Oct 16 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,
Regards,
Th.

commented Oct 16 by cilerler (180 points)
Thank you very much!
...