Bug 36068

Summary: [REGRESSION] Some emfs do not open in LO but do open in OpenOffice 3.3
Product: LibreOffice Reporter: Rainer Krug <rainer>
Component: DrawAssignee: Radek Doulik <rodo>
Status: RESOLVED FIXED    
Severity: major CC: chewi
Priority: medium    
Version: 3.3.2 release   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: This EMF does not open in LibreOffice
PNG file extracted from EMF+ record

Description Rainer Krug 2011-04-08 00:26:48 UTC
Created attachment 45411 [details]
This EMF does not open in LibreOffice

FILEOPEN

might be related to Bug 31814 

It is not possible to open certain emfs (e.g. attached one) (image1.emf), but OO 3.3 can, and consequently shows them in the docx, which LibreOffice does not.

This does not apply to all emf, as it can read other emfs.
Comment 1 Phil Hord 2011-07-14 16:35:06 UTC
The sample doc's images also fail to display for me in LO-3.4.1 on Ubuntu Linux x86_64.
Comment 2 Valek Filippov 2012-04-14 07:52:56 UTC
Radek,
the file is very short.
LibO opens it as a white rectangle.

It has EMF+ with Image Object (embedded PNG file) and separate StretchDIBbits.
Probably something is not right with EMF+ Image handling. My tool doesn't support EMF+ rendering (ignores it as I believe OO.org does), so it renders bitmap from EMF record, which looks like reduced quality copy of the PNG from EMF+ record.

I believe it should looks like attached PNG file.
Comment 3 Valek Filippov 2012-04-14 07:53:31 UTC
Created attachment 59972 [details]
PNG file extracted from EMF+ record
Comment 4 Radek Doulik 2012-04-18 06:40:53 UTC
problem fixed in master branch. thanks for nice test case!