Hi,
I am trying to convert a svg file that has a raster as the background image and other vectors on top of it. I am using batik's transcoder api. Does batik allow this type of conversion? How can I achieve this. Currently I am getting this run-time error from batik while transcoding:
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.apache.batik.ext.awt.image.spi.ImageTagRegistry.getRegistry(Unknown Source)
at org.apache.batik.bridge.SVGImageElementBridge.createRasterImageNode(Unknown Source)
at org.apache.batik.bridge.SVGImageElementBridge.createGraphicsNode(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source)
at org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown Source)
at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source)
at createImageForPress.emitJPG(createImageForPress.java:65)
at createImageForPress.main(createImageForPress.java:44)
Caused by: java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:121)
at java.awt.Label.<init>(Label.java:133)
at java.awt.Label.<init>(Label.java:100)
at org.apache.batik.ext.awt.image.spi.JDKRegistryEntry.<clinit>(Unknown Source)
... 13 more
If I remove the raster(image tag) from the svg file it creates the raster for it. Any tips or hints are greatly appreciated.
Thanks in advance,
Riyaz
- RE: Raster-Vector Combination Riyaz
- RE: Raster-Vector Combination Thomas E Deweese
