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

"[email protected] [svg-developers]" <[email protected]> 25 Nov 2014 14:51:46 -0800
Newsgroups gmane.text.xml.svg.devel
Message-ID <[email protected]>
Domenico,

Thank you again! It has been very hard to get any useful feedback, and I sincerely appreciate your excellent suggestions!

You wrote:

 put all the work in a <g> layer (including the image) and apply transforms to it using the transform attribute


When I do that, would you suggest:

a) leave the height, width, x and y attributes on the image element alone?
b) give the container g element height, width, x and y attributes, or not?
c) can you suggest possible transform values for the new g element?

On the reference page you suggested (...dotuscomus.com/...) I couldn't really do a test; it doesn't seem to be mobile enabled; you cannot drag or pinch the inner svg element without dragging or zooming the entire window. I think it is missing the proper html viewport metatag. ( <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/> )

Also, I didn't see any of those which contained both raster and vector elements, but I may have missed the one that did!

Again, MANY thinks for these suggestions!

- Paul