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 "Jan Tošovský (JIRA)" <ji...@apache.org> on 2016/12/21 20:50:58 UTC
[jira] [Issue Comment Deleted] (BATIK-1114) Batik 1.8:
batik-rasterizer.jar can't convert svg to jpg from command line
[ https://issues.apache.org/jira/browse/BATIK-1114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Tošovský updated BATIK-1114:
--------------------------------
Comment: was deleted
(was: Stefan, as you found, in that jar there is missing batik-codec dependency specified. When you run with java -jar, the classpath is ignored. That dependency needs to be added into pom.xml inside batik-svgrasterizer module and that module has to be rebuilt.)
> 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-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org