That viewBox attribute definitely seems to be effecting the way the images scale within the browsers.  I have yet to find a combination (when editing the image manually) of values for that attribute that make my image scale the way the map image does.  When I simply try to replace the header info with that of the map image the Inkspace image fails to parse for lack of the definition of the filter attributes.  When I try to simply add the viewBox attribute with values that seem to correspond to the width and height of the image I get an even uglier half-cutoff rendering.

Is it just me or does this seem like a pretty serious issue with Inkscape?  SVG is after all a W3C standard intended for use on the web.  Not trying to start a flaming thread, just seems like more people would have tried embedding SVGs in html like this by now and that this would have been raised as a bug earlier.

Frank

On Dec 21, 2007 10:24 AM, Robert Funnell <robert.funnell@...2351...> wrote:
The difference between the two SVG files is that canvas_norelief
contains a viewBox attribute in the top-level svg element. Some
viewers require this in order to make the image scalable. I don't know
how to add viewBox from within Inkscape.

On Fri, 21 Dec 2007, Frank Gilroy wrote:

> Hi Folks,
>
> This is probably a newbie kind of a question but I couldn't find the answer
> in the docs or FAQ after 30 minutes or so of looking.
>
> When I create an drawing and save it as .svg the image doesn't scale when I
> open it in Mozilla Firefox or embed it in HTML.
>
> Examples:
>
> The following image is in SVG format and scales when the browser is resized
> (I don't know what was used to create this SVG):
>
> http://www.carto.net/papers/svg/samples/canvas_norelief.svg
>
> The following image was created in Inkscape and doesn't scale:
>
> http://frankgilroy.com/uploaded_images/bootstrapgirl.svg
>
> Is there a simple setting that will update the XML in the SVG file to allow
> for this scaling?
>
> Frank

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Inkscape-user mailing list
Inkscape-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-user



--

Frank Gilroy Was Here
http://www.frankgilroy.com