Bug 103903 - EMF import distorts proportion of image files (Landscape looks like Portrait)
Summary: EMF import distorts proportion 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: 2020-11-16 12:34 UTC (History)
2 users (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
Affected EMF compared (210.79 KB, image/png)
2020-11-16 12:34 UTC, Timur

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 Comment hidden (obsolete)
Comment 9 QA Administrators 2019-03-27 03:40:36 UTC Comment hidden (obsolete)
Comment 10 johan 2019-07-06 11:50:34 UTC
Tested aspect ratio distortion problem, see bug #116335 part 4), on Windows 7, 32-bit, with a clean installation of:

Version: (x86)
Build ID: 1ec314fa52f458adc18c4f025c545a4e8b22c159
CPU threads 4; OS: Windows 6.1; Rendering component: default; VCL: win; 
Locale: fi-FI (fi_FI); UI Language: fi-FI
Calc: threaded

The problem still occurs.
Comment 11 johan 2019-07-06 12:06:38 UTC
Additionally, similar problem occurs in Inkscape (version 0.92-4 tested; problem already reported to Inkscape devs).
Comment 12 Timur 2020-11-16 12:34:30 UTC
Created attachment 167331 [details]
Affected EMF compared

Repro LO 7.1+ and also MSO 2016. Different and reported good in IrfanView.