Re: [Inkscape-user] Inkscape-user Digest, Vol 19, Issue 21
Hi, wieing at the source code, the not scaling svg has defined width and height. instead the one witch is scalling right don´t.
have you tried to remove this properties?
"Saludos" froms spain
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
Yes I just got around to trying that myself. Two things are required to make this work.
1. Remove the Inkscape defined width and height settings (which forces the scaling to 100% of the defined "viewport" 2. Define a viewBox.
I defined a viewbox the size of the image like:
viewBox="0 0 824 624"
And this did the trick. Seems like this should definitely be an option in Inkscape. If not the default.
Frank
On Dec 21, 2007 11:25 AM, Odo <odo.suiadan@...155...> wrote:
Hi, wieing at the source code, the not scaling svg has defined width and height. instead the one witch is scalling right don´t.
have you tried to remove this properties?
"Saludos" froms spain
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 email was written with 100% recycable electrons>>>
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
participants (2)
-
Frank Gilroy
-
Odo