You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by "Peter Hull (Jira)" <ji...@apache.org> on 2024/06/18 10:58:00 UTC

[jira] [Commented] (BATIK-1367) [PATCH] Bar charts generated by XChart cannot be rasterized by Batik

    [ https://issues.apache.org/jira/browse/BATIK-1367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17855875#comment-17855875 ] 

Peter Hull commented on BATIK-1367:
-----------------------------------

There is a patch attached to this bug but it is more to demonstrate the cause of the problem, it is +not+ intended to be applied to fix this bug.

See comments by Thomas DeWeese here: [https://lists.apache.org/thread/zqt9s45x31pldp6xjc2rq684nwkso3gq]

 

> [PATCH] Bar charts generated by XChart cannot be rasterized by Batik
> --------------------------------------------------------------------
>
>                 Key: BATIK-1367
>                 URL: https://issues.apache.org/jira/browse/BATIK-1367
>             Project: Batik
>          Issue Type: Bug
>          Components: SVG Rasterizer
>    Affects Versions: 1.17
>         Environment: macOS 14.4.1/M1 Max/OpenJDK 21.0.1+12-LTS (Zulu21.30+15-CA)
> Linux 5.15.0-1044-aws/amd64/OpenJDK 11.0.18 (Eclipse Adoptium OpenJDK 64-Bit Server VM 11.0.18+10)
>            Reporter: Eric McIntyre
>            Priority: Major
>         Attachments: finite-bounds.txt, png.zip, svg.zip
>
>
> We have a process to generate SVG charts using XChart, which are then embedded in an HTML document and rendered as PDFs using Flying Saucer. Batik is plugged into the pipeline to render the SVGs.
> We've found that the bar charts created by XChart are not properly rasterized by Batik, even though they can be rendered within Chrome, Firefox, Inkscape, and other SVG-capable software. I was able to duplicate the issue using the standalone Batik Rasterizer program.
> The attached {{svg.zip}} file contains a sampling of SVGs generated with XChart. The {{png.zip}} file contains the results of running {{{}java -jar batik-rasterizer-1.17.jar -d ./*.svg{}}}. You can see that all of the bar charts are rendered as empty (transparent?) 700x750 PNGs, whereas the line & pie charts are rendered correctly. This seems to be a bug, though it's possible that the SVGs in question use a feature that is not currently supported by Batik.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org