Bug 103903 - EMF import distorts propotion of image files (Landscape looks like Portrait)
Summary: EMF import distorts propotion of image files (Landscape looks like Portrait)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
Keywords: filter:emf
Depends on:
Blocks: EMF-WMF
  Show dependency treegraph
Reported: 2016-11-13 13:00 UTC by Joerg
Modified: 2018-03-25 15:29 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:

Affected EMF file (41.59 KB, image/x-emf)
2016-11-13 13:01 UTC, Joerg
HowItLooksInLO5.2.1.2 (151.16 KB, image/png)
2016-11-13 13:02 UTC, Joerg
HowItLooksInIrfanView (115.56 KB, image/png)
2016-11-13 13:03 UTC, Joerg
LO5.2.1.2_Writer_file_with_the_image_embedded (15.74 KB, application/vnd.oasis.opendocument.text)
2016-11-13 13:05 UTC, Joerg
ScreenshotOfTheDistortedImageInLO_DEV_Version (117.45 KB, image/png)
2017-11-15 21:02 UTC, Joerg

Note You need to log in before you can comment on or make changes to this bug.
Description Joerg 2016-11-13 13:00:05 UTC
Attached is an EMF Metafile which is shown with it's correct (Landscape) porportions in third party tools like MS Windows Paint or the free IrfanView.

If I open this file with LibreOffice Draw or embedd it in Writer using Insert->Image->FromFile the image has completley different porportions and looks ugly therefore.

Steps to Reproduce:
Just open the attached EMF file Landscape.emf in LibreOffice draw and compare it with the expected image proportins of the attached IrfanView screenshot.

Actual Results:  
Image size 8.89 x 13.59 cm (Portrait)

Expected Results:
Image size 21.1 x 15.3 cm (Landscape) or proportional to this ratio

Reproducible: Always

User Profile Reset: No

Additional Info:

User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0
Comment 1 Joerg 2016-11-13 13:01:35 UTC
Created attachment 128716 [details]
Affected EMF file
Comment 2 Joerg 2016-11-13 13:02:33 UTC
Created attachment 128717 [details]
Comment 3 Joerg 2016-11-13 13:03:09 UTC
Created attachment 128718 [details]
Comment 4 Joerg 2016-11-13 13:05:11 UTC
Created attachment 128719 [details]
Comment 5 Aron Budea 2016-11-14 06:12:24 UTC
Confirmed with as early as v3.3.0 / Windows 7.
Comment 6 QA Administrators 2017-11-15 09:15:30 UTC Comment hidden (obsolete)
Comment 7 Joerg 2017-11-15 21:02:26 UTC
Created attachment 137793 [details]

This problem still occurs in the LO 6.0 nightly builds with the new EMF implementation! See the attached screenshot!
Comment 8 johan 2018-03-25 15:29:55 UTC
bug 116335 - part 4) may be related to this.