W3C home > Mailing lists > Public > www-svg@w3.org > August 2001

Corrections to Recommendation

From: J. David Eisenberg <catcode@catcode.com>
Date: Sat, 25 Aug 2001 12:55:21 -0500 (CDT)
To: www-svg@w3.org
Message-ID: <Pine.LNX.3.96.1010825123916.31568A-100000@tengu.host4u.net>
Section 15.7.3

"'feImage'  scales the referenced image to fit exactly into the subregion
specified by x, y, width and height."

  This appears to be the case if feImage references a JPG or PNG;
  if it references a <g>, it doesn't seem to scale, at least not in Batik.
  If you adjust the width and height in the following example, the
  picture scales, but the circle doesn't. (Use your favorite picture
  for pic.jpg) Is the spec wrong, or is Batik?

   <filter id="test-feImage-filter" filterUnits="objectBoundingBox"
       x="-10%" y="-10%" width="120%" height="150%">
       <feImage xlink:href="#round" result="output1"
           x="0" y="0"/>
       <feImage xlink:href="pic.jpg" result="output2"
           x="0" y="0"/>
           <feMergeNode in="output2"/>
           <feMergeNode in="output1"/>
           <feMergeNode in="SourceGraphic"/>
   <circle id="round" cx="50" cy="50" r="50" fill="#ffc" stroke="black"/>
   <g id="test" filter="url(#test-feImage-filter)">
       <rect x="10" y="10" width="100" height="100"
           stroke="red" fill="none"/>

And now, Mr. Grammar Queen simply has to comment on this one:

"'feTile'  references a previous filter primitive and then stitches
the tiles together based on the x, y, width and height values of
the referenced filter primitive in order to fill it's own filter
primitive subregion."

   Please get rid of the apostrophe in "it's".  

J. David Eisenberg  http://catcode.com/
Received on Saturday, 25 August 2001 13:55:35 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:51 UTC