Bug 58003 - FILEOPEN DOC Picture opened with wrong width/height ratio for drawing contents
Summary: FILEOPEN DOC Picture opened with wrong width/height ratio for drawing contents
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: EMF-WMF
  Show dependency treegraph
Reported: 2012-12-07 22:42 UTC by Salvatore di Maggio
Modified: 2021-05-28 16:27 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

In the screenshot are shown the differences. The .doc is the file with the different views. (265.57 KB, application/x-bzip2)
2012-12-07 22:42 UTC, Salvatore di Maggio
Extracted .wmf (2.65 KB, image/x-wmf)
2012-12-08 09:18 UTC, Rainer Bielefeld Retired

Note You need to log in before you can comment on or make changes to this bug.
Description Salvatore di Maggio 2012-12-07 22:42:00 UTC
Created attachment 71165 [details]
In the screenshot are shown the differences. The .doc is the file with the different views.

Problem description: 

Steps to reproduce:
1. I open a documenti, made for MS-Word XP
2. There are fonts compressed in a figure, that aren't in MS-Word.

Current behavior: fonts in a figure are compressed

Expected behavior: I should see the document like in MS-Word, without compressed fonts.
Comment 1 Rainer Bielefeld Retired 2012-12-08 08:24:45 UTC
[Reproducible] with "LibreOffice" German UI/ German Locale [Build-ID: 2ef5aff] {pull date 2012-11-28} on German WIN7 Home Premium (64bit):

Texts in picture 'tx_id_13_" look in a strange way narrow with very tall characters.
Comment 2 Rainer Bielefeld Retired 2012-12-08 09:17:21 UTC
The problem has nothing to do with .doc, its a .wmf problem. I extracted the .wmf (see attached "problemcausing_200000620005A6F10001B215A12FD2C0.wmf"). 
When you insert that picture into a A0 landscape empty.dwg (original size of picture might be 236,14cm / 101,24cm width/height?) you see that the chracters have a nice width/hight ratio, but the ratio of the complete picture has width/hight ratio 3:1, instead of more or less 1:1 in the text document table.

May be that ratio is wrong? When I open the wmf in IrfanView, the green "A+" bar has a width/heigh ration of 2.5 what is  more or less the same as in the WORD document.

In " empty.dwg " (see above) with picture original size the green "A+" bar has a width/heigh ration of 5

So I think the root of the problem is a wrong with/height ratio of the drawing elements in the wmf when opened in LibO.

The effect is not new, I see the same with OOo 1.1.5. so if it's a bug, it's inherited from OOo.

I see the same problem with “Lotus Symphony Release 3.0.1 Revision 20120110.2000” on German WIN7 Home Premium (64bit) 
AOOo 3.4.1
Comment 3 Rainer Bielefeld Retired 2012-12-08 09:18:51 UTC
Created attachment 71186 [details]
Extracted .wmf

I can't be 100% sure that the problem did not come into the .wmf when I extracted it from the Word.doc
Comment 4 QA Administrators 2015-04-19 03:23:21 UTC Comment hidden (obsolete)
Comment 5 Buovjaga 2015-06-19 13:08:57 UTC
Still compressed in the doc.

Win 7 Pro 64-bit Version:
Build ID: 437210d58f32177ef1829d704f7f4d2f1bbfbfdd
TinderBox: Win-x86@39, Branch:master, Time: 2015-06-18_07:21:56
Locale: fi-FI (fi_FI)
Comment 6 QA Administrators 2016-09-20 10:11:45 UTC Comment hidden (obsolete)
Comment 7 Roman Kuznetsov 2018-06-17 12:29:12 UTC
still repro in

Version: (x64)
Build ID: fe1a23b5c49c94410a604c8d4a6f50f43d575403
CPU threads: 4; OS: Windows 10.0; UI render: GL; 
TinderBox: Win-x86_64@42, Branch:libreoffice-6-1, Time: 2018-06-17_06:31:41
Locale: ru-RU (ru_RU); Calc: CL
Comment 8 QA Administrators 2019-11-18 03:28:02 UTC Comment hidden (obsolete)
Comment 9 Valek Filippov 2021-05-23 12:46:22 UTC
Version: (x64) / LibreOffice Community
Build ID: 4a9eef7849a75ba91806886ea9c96d114c8d56f9
CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL

Doesn't look like a metafile problem for me.
WMF is properly rendered in LO now.
I resaved to DOCX and extracted _E_MF files.
EMF file for the image in question is also rendered properly in LO.
However, the text is squeezed if DOC or DOCX is opened in Writer.
Comment 10 Bartosz 2021-05-28 16:27:16 UTC
For me the document looks exactly the same as in MS Word for Mac:

Version: / LibreOffice Community
Build ID: f6099ecf3d29644b5008cc8f48f42f4a40986e4c
CPU threads: 8; OS: Mac OS X 10.16; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded