xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From juuser <vessanpon...@hotmail.com>
Subject batik-rasterizer.jar (cant convert jpg from svg)
Date Mon, 26 Nov 2007 12:53:26 GMT

Hi all !

I have strange problem. 
I have svg-file (file.svg). 

Now when I use batik-rasterizer, I CAN convert svg to png.
BUT when I try to convert svg to jpg, I get nasty error:

[code]
Converting file.svg to /home/raf/file.jpg ... Exception in thread "main"
java.lang.NoClassDefFoundError: com.sun.image.codec.jpeg.JPEGCodec
   at org.apache.batik.transcoder.image.JPEGTranscoder.writeImage(Unknown
Source)
   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)
[/code]

My command is: java -jar /path/to/batik-rasterizer.jar -m image/jpeg -q 0.8
/path/to/file.svg

What could cause this error ? 

Thank you. 
 

-- 
View this message in context: http://www.nabble.com/batik-rasterizer.jar-%28cant-convert-jpg-from-svg%29-tf4874855.html#a13948656
Sent from the Batik - Users mailing list archive at Nabble.com.


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


Mime
View raw message