You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Ken Pettit <kp...@big-images.com> on 2008/04/29 22:47:45 UTC
batik-rasterizer fails when image is in svg.
When rasterizing an SVG with a larger image I get the error below.
When I replace
the image with a smaller file rasterizing succeeds. If I revert to
Batik 1.6 the file rasterizes
with a broken image where my high rez image should be.
What do I need to do to rasterize svgs with high rez large image
files? It is not uncommon
for me to print 8' x 24' images.
Thanks for any input,
Ken Pettit
BIG Images
Environment:
Mac OS 10.5
Apache 2
java version 1.5.0_13
Command:
java -jar -Xms1000m -Xmx2000m -Djava.awt.headless=true batik-1.7/batik-
rasterizer.jar -d 1_print -m image/tiff -dpi 150 0_process/36_3.svg
Error:
The URI "http://66.17.51.121/~ds_001/designersleeves/swf/assets/12094953503_o.jpeg
"
on element <image> can't be opened because:
The URI can't be opened:
http://66.17.51.121/~ds_001/designersleeves/swf/assets/12094953503_o.jpeg
at
org
.apache
.batik
.bridge.UserAgentAdapter.getBrokenLinkDocument(UserAgentAdapter.java:
449)
at
org
.apache
.batik
.bridge
.SVGImageElementBridge
.createBrokenImageNode(SVGImageElementBridge.java:993)
at
org
.apache
.batik
.bridge
.SVGImageElementBridge
.createImageGraphicsNode(SVGImageElementBridge.java:247)
at
org
.apache
.batik
.bridge
.SVGImageElementBridge
.buildImageGraphicsNode(SVGImageElementBridge.java:177)
at
org
.apache
.batik
.bridge
.SVGImageElementBridge.createGraphicsNode(SVGImageElementBridge.java:
119)
at
org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:
213)
at org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:
171)
at org.apache.batik.bridge.GVTBuilder.build(GVTBuilder.java:82)
at
org
.apache
.batik
.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:
208)
at
org
.apache
.batik.transcoder.image.ImageTranscoder.transcode(ImageTranscoder.java:
92)
at
org
.apache
.batik
.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:
142)
at
org
.apache
.batik
.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:
156)
at
org
.apache.batik.apps.rasterizer.SVGConverter.transcode(SVGConverter.java:
1001)
at
org
.apache.batik.apps.rasterizer.SVGConverter.execute(SVGConverter.java:
717)
at org.apache.batik.apps.rasterizer.Main.execute(Main.java:938)
at org.apache.batik.apps.rasterizer.Main.main(Main.java:992)
org.apache.batik.transcoder.TranscoderException: null
Enclosed Exception:
file:/Library/WebServer/Documents/batik_server/0_process/36_3.svg:0
The URI "http://66.17.51.121/~ds_001/designersleeves/swf/assets/12094953503_o.jpeg
"
on element <image> can't be opened because:
The URI can't be opened:
http://66.17.51.121/~ds_001/designersleeves/swf/assets/12094953503_o.jpeg
at
org
.apache
.batik
.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:
227)
at
org
.apache
.batik.transcoder.image.ImageTranscoder.transcode(ImageTranscoder.java:
92)
at
org
.apache
.batik
.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:
142)
at
org
.apache
.batik
.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:
156)
at
org
.apache.batik.apps.rasterizer.SVGConverter.transcode(SVGConverter.java:
1001)
at
org
.apache.batik.apps.rasterizer.SVGConverter.execute(SVGConverter.java:
717)
at org.apache.batik.apps.rasterizer.Main.execute(Main.java:938)
at org.apache.batik.apps.rasterizer.Main.main(Main.java:992)
... error (SVGConverter.error.while.rasterizing.file)
SVG File
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink
" xmlns:dp="http://www.delicioussuite.com/svg/2.0/permissions"
xmlns:di="http://www.delicioussuite.com/svg/2.0/imagePyramid"
width="6995px" height="5612px" viewBox="0 0 410 334">
<desc xmlns:deliciousDesc="http://www.delicioussuite.com/svg/2.0/description
">
<deliciousDesc:title>Title of this document goes here</
deliciousDesc:title>
<deliciousDesc:descr>Description of this document goes here</
deliciousDesc:descr>
<deliciousDesc:buildNo>42</deliciousDesc:buildNo>
<deliciousDesc:version>2_030308</deliciousDesc:version>
</desc>
<defs>
<dp:permissions type="default" >
<dp:permission key="all" value="111" />
</dp:permissions>
<di:imagePyramid id="1209495433080.1301" type="general">
<di:thumb width="102" height="82" size="15kb" url="http://66.17.51.121/~ds_001/designersleeves/swf/assets/12094952511_1.jpeg
" />
<di:low width="250" height="201" size="68kb" url="http://66.17.51.121/~ds_001/designersleeves/swf/assets/12094952511_2.jpeg
" />
<di:high width="1000" height="802" size="739kb" url="http://66.17.51.121/~ds_001/designersleeves/swf/assets/12094952511_4.jpeg
" />
<di:med width="500" height="401" size="226kb" url="http://66.17.51.121/~ds_001/designersleeves/swf/assets/12094952511_3.jpeg
" />
<di:original width="2665" height="2138" size="2571kb" url="http://66.17.51.121/~ds_001/designersleeves/swf/assets/12094952511_o.jpeg
" />
</di:imagePyramid>
</defs>
<image id="New%20Image%200" opacity="1" x="0" y="0" width="410"
height="329.65"
transform="matrix(1.0499999523162842,0,0,1.0499999523162842,-10,-6)"
xlink:href="http://66.17.51.121/~ds_001/designersleeves/swf/assets/12094952511_4.jpeg
" di:imagePyramid="url(#1209495433080.1301)" ></image>
</svg>
Ken Pettit
BIG Images
767 Francis Ave
San Luis Obispo CA, 93401
email:kpettit@big-images.com
phone:805-781-9301
fax:805-781-9303
Twenty years from now you will be more disappointed by the things that
you didn't do than by the ones you did do. So throw off the bowlines.
Sail away from the safe harbor. Catch the trade winds in your sails.
Explore. Dream. Discover -Mark Twain, author.
Re: batik-rasterizer fails when image is in svg.
Posted by Helder Magalhães <he...@gmail.com>.
> When rasterizing an SVG with a larger image I get the error below.
> When I replace the image with a smaller file rasterizing succeeds.
> If I revert to Batik 1.6 the file rasterizes
> with a broken image where my high rez image should be.
>
> What do I need to do to rasterize svgs with high rez large image files?
Providing links which aren't broken will probably do the trick! ;-)
Note that "12094952511_o.jpeg" isn't found in the server [1], so Batik
is right to complain - error message is pretty helpful here! Probably
when you "replace the image with a smaller file rasterizing succeeds"
as probably an existent image is then used...
Just a tip: at a glance, noticed you have some files with ".jpg"
extension which are actually PNG format [2]. Although Batik will
probably properly deal with this, some programs may try do detect
format based in extension and some weird/erroneous behavior may occur.
Hope this helps,
Helder Magalhães
[1] http://66.17.51.121/~ds_001/designersleeves/swf/assets/
[2] http://66.17.51.121/~ds_001/designersleeves/swf/assets/12087235813_o.jpg
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org