https://bugs.documentfoundation.org/show_bug.cgi?id=70710

--- Comment #22 from Valek Filippov <f...@df.ru> ---
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

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to