Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-1125

Rasterizer 1.8 fails with base64 embedded png

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.8
    • 1.10
    • SVG Rasterizer
    • None

    Description

      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.

      Attachments

        Activity

          People

            ssteiner Simon Steiner
            Jawzx Matthew Wimmer
            Votes:
            6 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: