You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by "simon steiner (JIRA)" <ji...@apache.org> on 2017/09/19 12:30:00 UTC
[jira] [Issue Comment Deleted] (BATIK-1122)
org.apache.batik.transcoder.TranscoderException: null
[ https://issues.apache.org/jira/browse/BATIK-1122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
simon steiner updated BATIK-1122:
---------------------------------
Comment: was deleted
(was: Can we see svg)
> org.apache.batik.transcoder.TranscoderException: null
> -----------------------------------------------------
>
> Key: BATIK-1122
> URL: https://issues.apache.org/jira/browse/BATIK-1122
> Project: Batik
> Issue Type: Bug
> Components: SVG Rasterizer
> Affects Versions: 1.6, 1.7
> Environment: Ubuntu 15.04, 64 bit, mostly standard packages
> Reporter: Andreas Schildbach
>
> I have a PNG (see below) that causes this exception when rasterizing. The exception is not very helpful and I have no idea why this is. I boiled it down to the shadow, if the remove the <feBlend /> line it works, but of course the image then doesn't look like I want.
> --- console ---
> $ java -jar batik-rasterizer-1.8.jar ~/dev/workspace/oeffi/oeffi/graphics/ic_oeffi_stations_color_48dp.svg
> About to transcode 1 SVG file(s)
> Converting ic_oeffi_stations_color_48dp.svg to /home/aschildbach/dev/workspace/oeffi/oeffi/graphics/ic_oeffi_stations_color_48dp.png ... org.apache.batik.transcoder.TranscoderException: null
> Enclosed Exception:
> Unable to transform src image
> 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)
> --- svg ---
> <?xml version="1.0" encoding="UTF-8"?>
> <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="1024px" height="1024px" viewBox="-32 -32 1088 1088">
> <defs>
> <linearGradient id="background-gradient" x1="0%" y1="0%" x2="0%" y2="100%">
> <stop offset="0%" style="stop-color:#f0c410" />
> <stop offset="100%" style="stop-color:#f0c410" />
> </linearGradient>
> <linearGradient id="symbol-gradient" x1="0%" y1="0%" x2="0%" y2="100%">
> <stop offset="0%" style="stop-color:#40a33f" />
> <stop offset="100%" style="stop-color:#40a33f" />
> </linearGradient>
> <filter id="background-shadow">
> <feOffset result="offsetOut" in="SourceGraphic" dx="0" dy="32" />
> <feColorMatrix result="matrixOut" in="offsetOut" type="matrix"
> values="0.15 0 0 0 0 0 0.15 0 0 0 0 0 0.15 0 0 0 0 0 1 0" />
> <feGaussianBlur result="blurOut" in="matrixOut" stdDeviation="32" />
> <feBlend in="SourceGraphic" in2="blurOut" mode="normal" />
> </filter>
> </defs>
> <!-- background -->
> <circle cx="512" cy="512" r="512" fill="url(#symbol-gradient)" />
> <circle cx="512" cy="512" r="400" fill="url(#background-gradient)" filter="url(#background-shadow)" />
> <!-- H -->
> <path d="M 354,787 v -554 m 0,266 h 311 m 0,288 v -554" style="fill:none;stroke:#40a33f;stroke-width:104" />
> </svg>
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org