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

Missing offset attribute from gradient style should be defaulted and not error out

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.9
    • None
    • None
    • None

    Description

      This issue prevents rendering of this SVGs from Wikipedia:

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

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

      Cause exception:

      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)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            espinosa_cz Jan Uhlir
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: