[
https://issues.apache.org/jira/browse/BATIK-1125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15124019#comment-15124019
]
Erich Schubert commented on BATIK-1125:
---------------------------------------
This is a bug in the packages uploaded to Maven. See also: BATIK-1111
Essentially: the Maven packages do not include working PNG/TIFF/JPEG export.
When the packages were built, they excluded the imageio classes, but fall back
to the sun codecs only (because they are available).
The sun codecs however, are commented in the META-INF/service file:
Patch-2 - enable the sun codecs (service loader will detect when they do not
exist).
https://github.com/kno10/batik/commit/eddef81b1f0a3e9db285737d2f1db1a07292ca50
Patch-3 - always build the imageio codecs by ignoring maybe-present sun codecs:
https://github.com/kno10/batik/commit/e49fd7336565055e68a38f7453c5e763cdf68f21
Patch-1 - fix a bug in the ImageTagRegistry not updating when register() is
called, and the new class is not of last priority:
https://github.com/kno10/batik/commit/ebe07c24a52619ed90601562059f3ac01865f7e6
> Rasterizer 1.8 fails with base64 embedded png
> ---------------------------------------------
>
> Key: BATIK-1125
> URL: https://issues.apache.org/jira/browse/BATIK-1125
> Project: Batik
> Issue Type: Bug
> Components: SVG Rasterizer
> Affects Versions: 1.8
> Environment: Linux centOS 6.6 (final)
> java version "1.7.0_79"
> OpenJDK Runtime Environment (rhel-2.5.5.3.el6_6-x86_64 u79-b14)
> OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)
> AND
> Linux Ubunu 14.04.2
> java version "1.7.0_79"
> OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu0.14.04.2)
> OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)
> Reporter: Matthew Wimmer
>
> when calling batik-renderer-1.8.jar from the command-line SVGs with base64
> embedded png images that previously rendered fine with batik 1.7.1 on the
> same system(s) do not render correctly and fail with the following error:
> Converting DEBUG.svg to /obfuscatedpath/DEBUG.png ...
> org.apache.batik.bridge.BridgeException: file:/obfuscatedpath/DEBU$
> The URI
> "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAACc4AAAnOCAYAAACYykaSAAAABHNCSVQICAgIfAhkiAAAIABJREFU
> eJzs3Xt0U/ed9/v3BnMxF9syGBMDBouAwZirDIQ7DTJJm6QN6YgmJdO0nY4409PVzprz9DFr+qyu
> tn90zJqcaee$
> on element <image> can't be opened because:
> URL data in unsupported format or corrupt
> at
> org.apache.batik.bridge.UserAgentAdapter.getBrokenLinkDocument(Unknown Source)
> at
> org.apache.batik.bridge.SVGImageElementBridge.createRasterImageNode(Unknown
> Source)
> at
> org.apache.batik.bridge.SVGImageElementBridge.createImageGraphicsNode(Unknown
> Source)
> at
> org.apache.batik.bridge.SVGImageElementBridge.buildImageGraphicsNode(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.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
> 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)
> org.apache.batik.transcoder.TranscoderException: null
> Enclosed Exception:
> file:/obfuscatedpath/DEBUG.svg:0
> The URI
> "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAACc4AAAnOCAYAAACYykaSAAAABHNCSVQICAgIfAhkiAAAIABJREFU
> eJzs3Xt0U/ed9/v3BnMxF9syGBMDBouAwZirDIQ7DTJJm6QN6YgmJdO0nY4409PVzprz9DFr+qyu
> tn90zJqcaee...
> on element <image> can't be opened because:
> URL data in unsupported format or corrupt
> 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
> 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)
> Based on some google searching of this issue I attempted to put the
> batik-codecs-1.8.jar file in my -classpath with no resolution.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]