EtheaDev / SVGIconImageList

Three engines to render SVG (Delphi Image32, Skia4Delphi, Direct2D wrapper) and four components to simplify use of SVG images (resize, fixedcolor, grayscale...)
Apache License 2.0
321 stars 93 forks source link

Rendering problem "URL" #194

Closed carloBarazzetta closed 3 years ago

carloBarazzetta commented 3 years ago

This svg image is not rendered by Image32, the problem is into filter="url(#A)":

<svg xmlns="http://www.w3.org/2000/svg" width="755.906" height="226.772" viewBox="0 0 200 60">
 <defs>
  <filter id="A">
   <feGaussianBlur in="SourceAlpha" stdDeviation="2"/>
   <feOffset dx="2" dy="2" result="A"/>
   <feFlood flood-color="#fff" flood-opacity=".6"/>
   <feComposite in2="A" operator="in" result="A"/>
   <feMerge>
    <feMergeNode in="A"/>
    <feMergeNode in="SourceGraphic"/>
   </feMerge>
  </filter>
 </defs>
 <path fill="#005e98" filter="url(#A)" transform="matrix(.8 0 0 .8 18 6)" d="M0 60l4.557-11.2H37.6V60zm52.8-48.8h-9.2V0h29.6v11.2H64V60H52.8zM79.2 0h11.2v60H79.2zm30.4 0h11.2v60h-11.2zm17.2 48.8h29.6V60h-29.6zm52.075-13.2H162.4V24.4h11.92l-5.368-13.2H162.4V0h13.2L200 60h-11.2zM94.4 24.4h11.2v11.2H94.4zm32.4 0h29.598v11.2H126.8zm-112.325 0H37.6v11.2H9.924zm5.368-13.2L24.4 0h13.2v11.2zM126.8 0h29.6v11.2h-29.6z"/>
</svg>
AngusJohnson commented 3 years ago

Thanks Carlo. It should be fixed now.

carloBarazzetta commented 3 years ago

Thank you for the immediate fix!