[jira] [Updated] (BATIK-1195) Missing offset attribute from gradient style should be defaulted and not error out

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Updated] (BATIK-1195) Missing offset attribute from gradient style should be defaulted and not error out

JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/BATIK-1195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Uhlir updated BATIK-1195:
-----------------------------
    Description:
This issue prevents rendering of this SVGs from Wikipedia:
* https://upload.wikimedia.org/wikipedia/commons/8/8d/Antu_folder-yellow.svg
* https://upload.wikimedia.org/wikipedia/commons/d/d7/Breezeicons-places-64-folder-orange.svg

Relevant code snippet from Breezeicons-places-64-folder-orange.svg:

{code}
<linearGradient id="linearGradient4172-0">
   <stop style="stop-color:#f89406" id="stop4174-4"/>
   <stop offset="1" style="stop-color:#faa938" id="stop4176-5"/>
</linearGradient>
{code}

Cause exception:
{code}
The attribute "offset" of the element <stop> is required
        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)
{code}

  was:
This issue prevents rendering of this SVGs from Wikipedia:
* https://upload.wikimedia.org/wikipedia/commons/8/8d/Antu_folder-yellow.svg
* https://upload.wikimedia.org/wikipedia/commons/d/d7/Breezeicons-places-64-folder-orange.svg

Relevant code snippet:

{code}
<linearGradient id="linearGradient4172-0">
   <stop style="stop-color:#f89406" id="stop4174-4"/>
   <stop offset="1" style="stop-color:#faa938" id="stop4176-5"/>
</linearGradient>
{code}

Cause exception:
{code}
The attribute "offset" of the element <stop> is required
        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)
{code}


> Missing offset attribute from gradient style should be defaulted and not error out
> ----------------------------------------------------------------------------------
>
>                 Key: BATIK-1195
>                 URL: https://issues.apache.org/jira/browse/BATIK-1195
>             Project: Batik
>          Issue Type: Bug
>    Affects Versions: 1.9
>            Reporter: Jan Uhlir
>            Priority: Minor
>
> This issue prevents rendering of this SVGs from Wikipedia:
> * https://upload.wikimedia.org/wikipedia/commons/8/8d/Antu_folder-yellow.svg
> * https://upload.wikimedia.org/wikipedia/commons/d/d7/Breezeicons-places-64-folder-orange.svg
> Relevant code snippet from Breezeicons-places-64-folder-orange.svg:
> {code}
> <linearGradient id="linearGradient4172-0">
>    <stop style="stop-color:#f89406" id="stop4174-4"/>
>    <stop offset="1" style="stop-color:#faa938" id="stop4176-5"/>
> </linearGradient>
> {code}
> Cause exception:
> {code}
> The attribute "offset" of the element <stop> is required
> 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)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...