<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [WMF] FILEOPEN Filled areas are not filled for WMF images"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=70710#c22">Comment # 22</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [WMF] FILEOPEN Filled areas are not filled for WMF images"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=70710">bug 70710</a>
from <span class="vcard"><a class="email" href="mailto:frob@df.ru" title="Valek Filippov <frob@df.ru>"> <span class="fn">Valek Filippov</span></a>
</span></b>
<pre>Original file is a WMF with 6 ESCAPE records at the start of the file.
Those ESCAPE records embed EMF content into WMF.
The EMF itself has bunch of EMF+ records and according to the EmfPlusHeader in
the first of them it's supposed to be "EMF/EMF+ dual" file, hence content
should be the same in EMF and EMF+ records.
For the analysis the following files were created from original (#0) file:
- #1 "pure WMF" with all ESCAPE records removed
- #2 EMF/EMF+ extracted from ESCAPE records
- #3 "pure EMF" with EMF+ records removed from #2
- #4 WMF with ESCAPE records only
Observed behavior of MS Paint and PowerPoint (mac):
#0 -- all colors are presented
#1 -- all colors are presented
#2 -- all colors are missed
#3 -- all colors are presented
#4 -- empty picture
Conclusions part A:
- there is something wrong with EMF+ part inside of EMF inside of WMF
- MS Paint and PowerPoint (mac) ignore EMF/EMF+ part of the WMF file (no
rendering of "ESCAPE only" #4 file, no problem with original #0 file)
Observed behavior of LO 7.2 master (May 11, 2021):
#0 -- all colors are missed
#1 -- all colors are presented
#2 -- all colors are missed
#3 -- all colors are presented except those at the bottom
#4 -- all colors are missed
Conclusions part B:
- LO tries to use (presumably superior) EMF and (presumably superior) EMF+ in
it, which leads to missing colors in #0, #2 and drawing colorless image in #4
- there is another unidentified bug that prevents LO from rendering some colors
for #3 ("pure EMF") file
Suggestions:
- validate behavior with those files in other MS implementations (MSO on win
etc)
- change LO to ignore EMF/EMF+ in WMF files
- investigate the smaller problem with #3</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>