Discussion:
[Libreoffice-bugs] [Bug 116335] New: Some EMF files are not imported correctly
b***@bugs.documentfoundation.org
2018-03-10 13:45:17 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=116335

Bug ID: 116335
Summary: Some EMF files are not imported correctly
Product: LibreOffice
Version: 5.4.5.1 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: graphics stack
Assignee: libreoffice-***@lists.freedesktop.org
Reporter: ***@gmail.com

Description:
Some EMF (Windows Enhanced Metafile) files are not displayed correctly when
inserted into Writer or opened in Draw. Examples and a screenshot of Microsoft
Word for comparison are attached below.

The following problems occur:

1) Lots of empty extra space is included on the right and bottom sides.

2) The top part of the image is hidden when inserted into Writer. It will
become visible if you use the crop tool and pull the top left crop handle
outwards.

3) The curves extend outside the plot area even though they should not.

4) Additionally, the aspect ratio of the portrait example is wrong and the text
elements are completely messed up.

Please note that Inkscape does not show the examples 100% correctly. You may
need Windows software to view them correctly.

Steps to Reproduce:
1. Download and unpack the example files below
2. Insert the example EMF files into Writer or open them in Draw
3. Compare with the screenshot which shows a reference rendering in MS Word

Actual Results:
The problems explained above occur.

Expected Results:
The images should look approximately the same as shown in the screenshot.


Reproducible: Always


User Profile Reset: No



Additional Info:
Tested with two Libreoffice versions on Windows and Linux.

Debian 9 "Stretch" x86-64:
Version: 5.2.7.2
Build ID: 1:5.2.7-1+deb9u2
CPU Threads: 4; OS Version: Linux 4.9; UI Render: default; VCL: gtk2;
Locale: fi-FI (fi_FI.utf8); Calc: group

Windows 7 32-bit:
Version: 5.4.5.1
Build ID: 79c9829dd5d8054ec39a82dc51cd9eff340dbee8
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default;
Locale: fi-FI (fi_FI); Calc: group


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Firefox/52.0
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2018-03-10 13:46:16 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=116335

--- Comment #1 from johan <***@gmail.com> ---
Created attachment 140544
--> https://bugs.documentfoundation.org/attachment.cgi?id=140544&action=edit
example files

Example files - two EMF files and a reference screenshot in a Zip package.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2018-03-11 16:08:48 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=116335

Buovjaga <***@suomi24.fi> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEEDINFO
CC| |***@suomi24.fi
Ever confirmed|0 |1

--- Comment #2 from Buovjaga <***@suomi24.fi> ---
There can be only one issue per report.

Please test with 6.0.x to be sure the problems are still current.

Then go through these to find existing reports:
https://bugs.documentfoundation.org/showdependencytree.cgi?id=103859&hide_resolved=1

Finally, open a separate report for each remaining issue.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2018-03-17 20:35:43 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=116335

--- Comment #3 from johan <***@gmail.com> ---
Tested with:

Version: 6.0.2.1
Build ID: f7f06a8f319e4b62f9bc5095aa112a65d2f3ac89
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default;
Locale: fi-FI (fi_FI); Calc: group

All problems still occur. I'll create separate reports soon unless someone
wants to comment here.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2018-03-17 20:56:54 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=116335

Telesto <***@surfxs.nl> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |UNCONFIRMED
Blocks| |103859
Ever confirmed|1 |0

--- Comment #4 from Telesto <***@surfxs.nl> ---
Repro with
Version: 6.1.0.0.alpha0+
Build ID: e5bc7fa4e83b33fc3eee343e560a4f8cb91eacd6
CPU threads: 4; OS: Windows 6.3; UI render: default;
TinderBox: Win-***@42, Branch:master, Time: 2018-03-14_23:37:38
Locale: nl-NL (nl_NL); Calc: CL

empty image with
LibreOffice 3.5.7.2
Build ID: 3215f89-f603614-ab984f2-7348103-1225a5b

looks fine with:
LibreOffice 3.3.0
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4

List of know EMF/WMF issues: bug 103859

@Buovjaga
The description is pretty detailed. However, the (main) problem is pretty
obvious.. this report will do.. Didn't check for similar reports


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=103859
[Bug 103859] [META] EMF/WMF (Enhanced/Windows Metafile) bugs and enhancements
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2018-03-18 11:15:47 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=116335

--- Comment #5 from Buovjaga <***@suomi24.fi> ---
1) is seen when you select the object and notice the object borders. I wonder,
if the file has clipping info and it would be the same root cause as bug 48916?

I cannot see the problem 2).

4) looks like bug 103903

So in my view there is no single "main problem".

Arch Linux 64-bit
Version: 6.1.0.0.alpha0+
Build ID: 070dbae6b4dc497d6ae898e60203d25b0e608d73
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: kde4;
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on March 17th 2018
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2018-03-18 17:21:40 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=116335

--- Comment #6 from Telesto <***@surfxs.nl> ---
Created attachment 140687
--> https://bugs.documentfoundation.org/attachment.cgi?id=140687&action=edit
Comparison
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2018-03-18 18:09:52 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=116335

--- Comment #7 from Buovjaga <***@suomi24.fi> ---
(In reply to Telesto from comment #6)
Created attachment 140687 [details]
Comparison
Problems 1) and 3) are visible in this.

Still curious about 2). Could johan produce a screenshot of it?
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2018-03-21 09:10:30 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=116335

Buovjaga <***@suomi24.fi> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEEDINFO
Ever confirmed|0 |1
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2018-03-24 15:57:06 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=116335

--- Comment #8 from johan <***@gmail.com> ---
Created attachment 140861
--> https://bugs.documentfoundation.org/attachment.cgi?id=140861&action=edit
Screenshot of nr. 2

Screenshot showing 2) attached. It occurs when the image is inserted into
Writer.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2018-03-24 16:27:59 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=116335

Buovjaga <***@suomi24.fi> changed:

What |Removed |Added
----------------------------------------------------------------------------
Keywords| |preBibisect, regression
Status|NEEDINFO |NEW
Summary|Some EMF files are not |EMF is opened with large
|imported correctly |empty space around it

--- Comment #9 from Buovjaga <***@suomi24.fi> ---
Ok, let's make this report be about problem 1).

As problem 4) is likely bug 103903, please create new reports for problems 2)
and 3).

Mention the new reports here, when you have created them and we will confirm
them.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2018-03-25 15:22:55 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=116335

--- Comment #10 from johan <***@gmail.com> ---
2) reported as bug 116622

3) reported as bug 116623


Additional notes that may be useful:

3) occurs in Inkscape as well (already reported)

4) occurs in Inkscape as well (already reported)

2) occurs in Inkscape - the image is placed partially outside the page/canvas
area (not yet reported)

1) may occur in Inkscape, a matter of definition. The canvas/page area is much
larger than the image itself when the image is opened. (not yet reported)
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2018-03-27 21:09:20 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=116335

--- Comment #11 from Bartosz <***@poczta.onet.pl> ---
Created attachment 140927
--> https://bugs.documentfoundation.org/attachment.cgi?id=140927&action=edit
Example .docx file with improper zoom level
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2018-03-27 21:09:33 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=116335

Bartosz <***@poczta.onet.pl> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@poczta.onet.pl
Assignee|libreoffice-***@lists.free |***@poczta.onet.pl
|desktop.org |
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2018-04-16 08:31:28 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=116335

Xisco Faulí <***@libreoffice.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Assignee|***@poczta.onet.pl |libreoffice-***@lists.free
| |desktop.org
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2018-09-07 14:22:46 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=116335

Bartosz <***@poczta.onet.pl> changed:

What |Removed |Added
----------------------------------------------------------------------------
Assignee|libreoffice-***@lists.free |***@poczta.onet.pl
|desktop.org |
Status|NEW |ASSIGNED
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2018-12-10 16:04:54 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=116335

Xisco Faulí <***@libreoffice.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |NEW
Assignee|***@poczta.onet.pl |libreoffice-***@lists.free
| |desktop.org

--- Comment #14 from Xisco Faulí <***@libreoffice.org> ---
Dear Bartosz,
This bug has been in ASSIGNED status for more than 3 months without any
activity. Resetting it to NEW.
Please assigned it back to yourself if you're still working on this.
--
You are receiving this mail because:
You are the assignee for the bug.
Loading...