viewBox 0 0 {width} {height}

Asked by indy

hello,

congratulations for the great work.

Is there any possibility to implement this attribute by default
viewBox 0 0 {width} {height}
instead of the height and width attributes?

This could help to automatically scale embedded inckaspe svg in a web page.
Please see this link:

http://stackoverflow.com/questions/644896/how-do-i-scale-a-stubborn-svg-embedded-with-the-object-tag

Thank you for your efforts,
Cheers
Davide

Question information

Language:
English Edit question
Status:
Answered
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
su_v (suv-lp) said :
#1

This is a known feature request tracked in
Bug #168261 “Inkscape SVG unresizable in Firefox (needs viewBox?)”
<https://bugs.launchpad.net/inkscape/+bug/168261>

Other related reports:
Bug #170965 “automatic ViewBox creation”
Bug #169966 ”Saving Plain SVG with viewBox extension”

Note: saving a copy of your file as 'Optimized SVG' (based on Scour) offers an option to automatically insert a viewBox attribute.

Can you help with this problem?

Provide an answer of your own, or ask indy for more information if necessary.

To post a message you must log in.