[ https://issues.apache.org/jira/browse/BATIK-1114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14517023#comment-14517023 ]
Luis Bernardo commented on BATIK-1114: -------------------------------------- This is somehow related to the fact that the release was compiled with JDK1.6 (1.6.0_45). The issue does not happen if the same code is compiled with JDK1.7 or JDK1.8. > 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 (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: batik-dev-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: batik-dev-h...@xmlgraphics.apache.org