On 1/15/25 14:36, Martin Goik wrote:
The Xmlmind distribution includes the Apache Batik Plugin for
rasterizing SVG images.
However I'm using Inkscape for SVG image creation. Unfortunately
Inkscape sometimes creates non-standard conformant SVG code. This code
does not cause any trouble with current browsers but Batik being very
picky frequently throws exceptions making Xmlmind image rendering a pain.
In the past it was possible to use .../xmlmind/addon/config/unix/
imagetoolkits.incl to replace the Batik plugin by inkscape:
<imageToolkit name="Inkscape as an external SVG toolkit">
<description>Converts SVG to PNG.</description>
<converter>
<input extensions="svg svgz"
magicStrings="<?xml"
rootNames="svg:svg"
rootQNames="svg:svg" xmlns:svg="http://www.w3.org/2000/
svg" />
<output extensions="png"/>
<shell
command='inkscape --export-filename="%O" "%I"' />
</converter>
This no longer seems to work.
Yes.
Image toolkits are sorted as follows: image toolkit *plug-ins* (that is,
written in Java, like the Batik image toolkit) first then *external*
image toolkits (like your "Inkscape as an external SVG toolkit" above).
When 2 image toolkits are of the same type, they are sorted by their names.
After that, image toolkits are tested in order for their support of the
format of the image to be converted. Therefore the Batik image toolkit
will always supersede your "Inkscape as an external SVG toolkit".
Unfortunately, there is currently no way to change this. Moreover we
don't plan to change the sorting criteria described above. Sorry.
The Xmlmind addon configuration view does
not allow to remove the bundled Apache Batik plugin which seems to take
precedence over my Inkscape configuration.
The only way I found so far was removing the addon/batik_imagetoolkit
directory. This causes an xxe startup warning but the application seems
to work properly using my inkscape configuration.
BTW: Any hints regarding e.g. circumventing Inkscape/Batik
incompatibilities are greatly welcome!
I myself use Inkscape for SVG image creation and have no problems with
Batik I cannot solve by (1) slightly modifying the SVG using Inkscape
and (2) saving the created SVG as "Plain SVG" (not "Inkscape SVG") using
Inkscape.
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support