[jira] [Commented] (BATIK-1114) Batik 1.8: batik-rasterizer.jar can't convert svg to jpg from command line

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] [Commented] (BATIK-1114) Batik 1.8: batik-rasterizer.jar can't convert svg to jpg from command line

JIRA jira@apache.org

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

simon steiner commented on BATIK-1114:

Works on trunk for me

> Batik 1.8: batik-rasterizer.jar can't convert svg to jpg from command line
> --------------------------------------------------------------------------
>                 Key: BATIK-1114
>                 URL: https://issues.apache.org/jira/browse/BATIK-1114
>             Project: Batik
>          Issue Type: Bug
>          Components: SVG Rasterizer
>    Affects Versions: 1.8
>         Environment: Ubuntu 12.04.5
> java version "1.7.0_76"
> Java(TM) SE Runtime Environment (build 1.7.0_76-b13)
> Java HotSpot(TM) 64-Bit Server VM (build 24.76-b04, mixed mode)
>            Reporter: Stefan Wienert
> I want to use batik-rasterizer.jar from command line to convert svg to various formats.
> I tried version 1.8 of batik, that worked out of the box with png, but failed with jpeg:
> {code:none}
> Unable to export image; About to transcode 1 SVG file(s) Converting highcharts-in20150410-18593-78lbuf.svg to /home/local/PDC01/swi/Projects/jobwert/tmp/highcharts-out20150410-18593-4kjr1n.jpg ... org.apache.batik.transcoder.TranscoderException: null Enclosed Exception: null at org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown Source) at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source) at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source) at org.apache.batik.apps.rasterizer.SVGConverter.transcode(Unknown Source) at org.apache.batik.apps.rasterizer.SVGConverter.execute(Unknown Source) at org.apache.batik.apps.rasterizer.Main.execute(Unknown Source) at org.apache.batik.apps.rasterizer.Main.main(Unknown Source) ... error (SVGConverter.error.while.rasterizing.file)
> {code}
> I've tried manipulating the class-path to explicitly link to the batik-codec.jar, e.g.:
> {code:none}
> java -classpath batik-1.8/batik-codec.jar -jar batik-1.8/batik-rasterizer.jar -m image/jpeg -q 0.95 -d out.jpg  in.svg
> {code}
> but that didn't help.
> After downgrading to version 1.7, the export/conversion works without error.
> How can I use batik-rasterizer.jar 1.8 from command line for JPEG images?

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]