Ask Your Question
0

Impress: Image stretched when inserting SVG from file. [closed]

asked 2014-03-21 15:51:05 +0200

Forbo gravatar image

updated 2015-09-09 21:11:32 +0200

Alex Kemp gravatar image

I am inserting an SVG file into a slide in Impress. Upon inserting, the image is immediately stretched to the maximum height of the slide, without affecting the width. The result is a very distorted vertically stretched image. Here are a couple example screenshots-

What it should look like: http://i.imgur.com/PWBCBt2.png

How it turns out: http://i.imgur.com/TnMZm4D.png

This issue is occurring on LibreOffice 4.1.5.3 - Build ID: 1c1366bba2ba2b554cd2ca4d87c06da81c05d24 I am running it on OS X 10.9.2

I have searched high and low for a solution to this issue to no avail. Wiki, help docs, Google-Fu, all come up empty. Am I just doing something wrong when importing the SVG? Is there some option that I'm missing to maintain the aspect ratio when importing from a file? Or is this an actual bug that should be submitted to https://www.libreoffice.org/get-help/bug/

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-02-20 15:51:47.144066

Comments

Does this happen with all .svg files? Can you please provide the shown .svg file, it might be an error in the file itself.

Regina gravatar imageRegina ( 2014-03-21 17:04:10 +0200 )edit

Every svg file that I've tried thus far has run into this issue. I'm just using files from openclipart.org . The one that I have pictured in the screenshots is found here: http://openclipart.org/detail/171421/...

Sorry for the delayed response, I never got any notification that anyone had responded. -_-

Thanks for the further inquiries, let me know what else I can do to help get this figured out.

Forbo gravatar imageForbo ( 2014-03-27 17:04:02 +0200 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2014-03-27 18:37:41 +0200

Regina gravatar image

The problem is in this special .svg file (and likely in others from openclipart.org ). The file does not specify its width and height, but has only information about its aspect ratio in a svg:viewBox attribute. In LO 4.1 this is interpreted in the way, that the graphic is stretched to a DIN A4 portrait format. https://bugs.freedesktop.org/show_bug... This has been changed since LO 4.2. Now the content itself determines the width and height. If no other size information exists in the .svg file but only svg:viewBox, then its values are interpreted as having unit 1px, and this is transformed to 2,54cm/90.

So you need a newer version of LO to get a more suitable import.

edit flag offensive delete link more

Comments

Ah, thank you! What bothers me about this is that I had thought I was running the latest version of LO, due to the "Check for Updates" dialog indicating so as seen here: http://imgur.com/3lZBxNZ

However, when I check the downloads page, version 4.2.2 is clearly available for download. @_@

Sorry to have troubled you! That was one of the first things I checked, but I guess the update dialog can't really be trusted. Should I post another question specifically relating that that bug?

Forbo gravatar imageForbo ( 2014-03-27 18:45:32 +0200 )edit

Question Tools

1 follower

Stats

Asked: 2014-03-21 15:51:05 +0200

Seen: 848 times

Last updated: Mar 27 '14