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

low quality render border of the path command with filter effect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Won't Fix
    • 1.5
    • None
    • GVT Filters
    • None
    • Operating System: Linux
      Platform: All

    Description

      Using batik-src-1.5beta4b.zip
      the code attached below does not render wel using batik.
      It does render well with adobe pluggin for Mozilla.
      All tests have been made under Linux
      Linux 2.4.18

      The problem occurs around the coordinate 100,100:
      the red border is a bit thicker at the intersection of the zone on the right
      hand side.
      This is a very subtil bug but that lokks ugly when I crop the corners only
      (actually the corners or the white rectangle) and use them in a HTML table.

      This problem occurs in the SVG browser as well as in the rasterizer, so I guess
      it should be a filter routine problem.

      Thanks
      Alex

      -------------------------------------------------------------------------------

      <?xml version="1.0"?>
      <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
      "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">

      <svg width="3cm" height="14cm" viewBox="-20 -20 140 640"
      xmlns="http://www.w3.org/2000/svg">
      <defs>
      <filter id="MyFilter" filterUnits="userSpaceOnUse" x="-20" y="-20" width="140"
      height="640">
      <feGaussianBlur in="SourceAlpha" stdDeviation="4" result="blur"/>
      <feOffset in="blur" dx="4" dy="4" result="offsetBlur"/>
      <feSpecularLighting in="blur" surfaceScale="5" specularConstant=".75"
      specularExponent="20" lighting-color="#bbbbbb"
      result="specOut">
      <fePointLight x="-5000" y="-10000" z="20000"/>
      </feSpecularLighting>
      <feComposite in="specOut" in2="SourceAlpha" operator="in" result="specOut"/>
      <feComposite in="SourceGraphic" in2="specOut" operator="arithmetic"
      k1="0" k2="1" k3="1" k4="0" result="litPaint"/>
      <feMerge>
      <feMergeNode in="offsetBlur"/>
      <feMergeNode in="litPaint"/>
      </feMerge>
      </filter>
      </defs>

      <g filter="url(#MyFilter)" >

      <!-- a title and text -->
      <path
      fill="none"
      stroke="#D90000"
      stroke-width="10"
      d="
      M0,120
      C0,100 0,100 20,100
      L80,100
      C100,100 100,100 100,120
      M0,120
      L0,20
      C0,0 0,0 20,0
      L80,0
      C100,0 100,0 100,20
      L100,120
      M0,120
      L0,180
      C0,200 0,200 20,200
      L80,200
      C100,200 100,200 100,180
      L100,100
      "/>

      <rect
      x="0"
      y="0"
      width="100"
      height="100"
      fill="#D90000"
      stroke="#D90000"
      stroke-width="0"
      />

      </g>

      </svg>

      Attachments

        Activity

          People

            batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
            a@bestlinuxjobs.com alex madon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: