xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Hill <...@jan-hill.com>
Subject BATIK-966 still perisits
Date Sat, 07 Mar 2020 19:47:00 GMT
Hello mailinglist,

thats my frist post here, i am not a native speaker, if I make a
mistake, please give me a hint.

First thanks for batik :-)

I run in the same problem which is described here:

https://issues.apache.org/jira/browse/BATIK-966

I am sure there is am bug, if the base64 string/stream has whitespaces (
SPACE; LF; CRLF; CR).

If you handle base64 strings you have to ignore whitespaces.

See below. Is there a chance to get them fixed? Or for wich class should
this fix developed?

regards

Jan



Caused by: org.apache.batik.transcoder.TranscoderException: null

Enclosed Exception:

:0

The URI
"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQ.....RRQAUUUUAFFFFABRRRQB/ /9k= "

on element <image> can't be opened because:

JPEG URL is corrupt or unsupported variant

         at
org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:226)

         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
de.bdr.goid.idms.data.prepress.eprint.BatikPrepress$BatikPrintable.producePNGTo(BatikPrepress.java:163)

         ... 118 common frames omitted

Caused by: org.apache.batik.bridge.BridgeException: :0

The URI "data:image/jpeg;base64,/9j/4AAQSkZJRgAB.....AFFFFABRRRQB/ /9k= "

on element <image> can't be opened because:

JPEG URL is corrupt or unsupported variant

         at
org.apache.batik.bridge.UserAgentAdapter.getBrokenLinkDocument(UserAgentAdapter.java:448)

         at
org.apache.batik.bridge.SVGImageElementBridge.createRasterImageNode(SVGImageElementBridge.java:641)

         at
org.apache.batik.bridge.SVGImageElementBridge.createImageGraphicsNode(SVGImageElementBridge.java:231)

         at
org.apache.batik.bridge.SVGImageElementBridge.buildImageGraphicsNode(SVGImageElementBridge.java:179)

         at
org.apache.batik.bridge.SVGImageElementBridge.createGraphicsNode(SVGImageElementBridge.java:121)

         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)

         ... 122 common frames omitted

Mime
View raw message