Hello,
This is wrong. You don't need multiple copies. One file is enough. You can just create one SVG file, set the width and height attribute to 100% and set a viewBox attribute defining an internal coordinate system. All of these three attributes need to go on the root element. After that you can scale the file to any size and it will adopt.
This works in all viewers, XSL-FO compilers, etc.
I don't know if Inkscape allows to set these attributes - maybe you have to do it in the XML editor.
Also zooming is not at all limited to Opera. Other viewers support zooming as well: Batik, Adobe SVG viewer, Renesis, some commercial viewers. In fact there are more viewers that support zooming than viewers that don't.
I can appreciate where Dan is coming from on this. If you wanted to use the same image multiple times but at different sizes you would need to make multiple copies of the SVG file where each file is set to the right size.
Since you still need to specify the image dimensions in the file, the only advantage SVG offers over raster images is better quality image when printed (and zooming if you use Opera).
Aaron Spike-2 wrote:
Dan H wrote:
Thanks for any hints,
I think the viewBox attribute of the root svg element is the appropriate hint for this problem.
http://www.w3.org/TR/SVG/coords.html#ViewBoxAttribute
Aaron Spike
This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
-- View this message in context: http://www.nabble.com/Embedding-SVG-in-webpages-tf4137272.html#a11801749 Sent from the Inkscape - User mailing list archive at Nabble.com.
This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user