Hi,
I created an svg by pasting some images into Inkscape.
When I open the same svg in latest version Chrome, the aspect ratio of the images is very different than that seen in Inkscape.
What may be the reason, and what are good ways of addressing svg scaling, when designing in Inkscape for browsers.
Thanks!
svg aspect ratio problem
Re: svg aspect ratio problem
Hi.
Browsers may render svg-s differently.
Some cases explorer can show a better image, some may prefer to use opera.
Did you check if it's the svg, or the browser's rendering issue?
Browsers may render svg-s differently.
Some cases explorer can show a better image, some may prefer to use opera.
Did you check if it's the svg, or the browser's rendering issue?
Re: svg aspect ratio problem
Not sure the distinction between svg and "browser rendering issue" means anything. Chrome handles SVG perfectly well. It's probably something in the way Inkscape uses svg. Inkscape outputs should work on Chrome just as much as in explorer. Thanks anyway.
Re: svg aspect ratio problem
Hello:
Can you reproduce and example of the problem and show it here?
Maybe the issue is related to this:
http://tutorials.jenkov.com/svg/svg-viewport-view-box.html
Greetings
Can you reproduce and example of the problem and show it here?
Maybe the issue is related to this:
http://tutorials.jenkov.com/svg/svg-viewport-view-box.html
Greetings
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.
-
tylerdurden
- Posts: 2344
- Joined: Sun Apr 14, 2013 12:04 pm
- Location: Michigan, USA
Re: svg aspect ratio problem
Not seein it here...
- Attachments
-

- ChromeAspect.jpg (67.58 KiB) Viewed 1456 times
Have a nice day.
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
Re: svg aspect ratio problem
hulf2012 wrote:Maybe the issue is related to this:
http://tutorials.jenkov.com/svg/svg-viewport-view-box.html
That can produce differences between inkscape and browser rendering certainly.
To solve that you may edit the svg in a notepad to remove the unwanted tags.
Matan wrote:Chrome handles SVG perfectly well.
Some simple examples on the opposite:
https://openclipart.org/people/Lazur%20URH/spectrum3.svg
https://openclipart.org/people/Lazur%20URH/spectrum.svg
Though it renders better than on firefox...