css4j / echosvg

SVG implementation in the Java™ Language, fork of Apache Batik, supporting level 4 selectors and colors.
Apache License 2.0
39 stars 2 forks source link

Remove Apache xmlgraphics-commons #99

Closed carlosame closed 1 month ago

carlosame commented 4 months ago

EchoSVG depends on the Apache xmlgraphics-commons project to implement color conversion support for the deprecated SVG 1.1 colors. The color conversions in that module were written with deprecated specifications in mind and therefore lack modern features.

carlosame commented 1 month ago

To achieve that, move the necessary xmlgraphics-commons packages into a new module inside EchoSVG. Eventually replace the deprecated SVG features with modern CSS Colors.

It is worth mentioning that this affects only the deprecated SVG 1.1 color extensions, because for the color conversions of non-deprecated colors, EchoSVG has been using the css4j color infrastructure which is far more modern and offers advanced features like an accurate gamut clamping.