EchoSVG milestone release 0.2.1

11 views
Skip to first unread message

css4j

unread,
Aug 27, 2022, 3:21:01 PM8/27/22
to css4j
EchoSVG is a SVG toolkit (fork of Apache Batik) that uses CSS4J's NSAC as its low-level CSS engine, and milestone 0.2.1 was just released.

What is interesting about this release is the new CSSTranscodingHelper utility. It takes a SVG image loaded with complex CSS and transforms it into something that EchoSVG can understand. It has even succeeded in rendering MermaidJS diagrams, something that no other tool has achieved so far.

As an example, this is a link to one of the files that it renders as a unit test:


If you look into that file, it uses level 4 media queries, @supports rules, custom properties, calc() and even lch() colors (which are converted to RGBA).

It is basically what the XWiki PDF export has been doing for years, but with a deeper usage of css4j's capabilities. See also the Wiki page:


If one looks at this and takes into account the numerous bugs that EchoSVG has fixed so far, the advantage of using that library instead of Batik is clear.
Reply all
Reply to author
Forward
0 new messages