Re: Problem with raster image scaling in SVG on some iPad/iPhone models

"[email protected] [svg-developers]" <[email protected]> 19 Nov 2014 06:05:26 -0800
Newsgroups gmane.text.xml.svg.devel
Message-ID <[email protected]>
Yes, you can start with these steps for the <image> element: 

 

 1) specify the width and height of the image (rather than 100%) 
 2) get rid of the viewbox attribute (it implicitly corresponds to the image dimensions)
 3) get rid of that weird matrix. Set instead x="0.5", y="890.5".
 4) get rid of the preserveAspectRatio attribute. If you do need to experiment with it read well the specification. The defer value applies if the image references an svg image that specifies a viewbox.
 

 Take it from there and you may see improvements.
 

 Note: to fully render a peripheral stroke the viewbox x should be -0.5, not 0.5. 
 

 Question: why do you need to set the viewbox y to 890.5, and transform the image to that y value as well? That forces you to set the transforms for the other objects accordingly. 
 

 Domenico