Re: ISSUE-2353 (feImage coordinates): Clarify coordinates for feImage. [SVG 1.1 F2 Last Call]

On Tue, 2010-07-20 at 16:18 +0200, Erik Dahlstrom wrote:
> On Tue, 20 Jul 2010 15:39:32 +0200, Tavmjong Bah <tavmjong@free.fr> wrote:

> > 15.18 Filter primitive 'feImage'
> >
> > Add example:
> >
> > The following example illustrates how images are placed relative
> > to an object. From left to right:
> >
> >    * The default placement of an image. Note that the image is
> >      centered in the filter region and has the maximum size that will
> >      fit in the region consistent with preserving the aspect ratio.
> >
> >    * The image fitted to the bounding box of an object.
> >
> >    * The image placed using user coordinates. Note that the image is
> >      first centered in a box the size of the filter region and has the
> >      maximum size that will fit in the box consistent with preserving
> >      the aspect ratio. This box is then shifted by the given 'x' and
> >      'y' values relative to the viewport the object is in.
> ...
> 
> If you wanted the images on the left and right sides to be within the red  
> borders you need to specify the filter region such that it equals the  
> boundingbox of the referencing element (<filter x="0" y="0" width="1"  
> height="1"> should do it).

Actually, for the left side, I wanted to show that the default rendering
does not put the image in the red borders. This has confused a number of
people including the person who coded Inkscape's feImage routines. For
the right side, I hesitated about fitting the image in the red border. I
would have no objections if it changed (the 'y' value would then have to
be changed too to keep the image centered).

     Tav

Received on Tuesday, 20 July 2010 18:23:10 UTC