[PPTX] No support for `blipFill` → `blip` → `duotone` → `schemeClr` in slide background (causing unreadable text) + some images not displayed properly
This issue is unique.
- [x] I have used the search tool and did not find an issue describing my bug.
Operating System of DocumentServer
Linux (DEB package)
Version information
9.0.3.29 (deb)
Expected Behavior
In the example PPTX file (based on one of Microsoft Office's 2013 or 2010 standard basic templates):
- background should be displayed properly (with altered colors of the source picture)
- the missing images should be displayed
Example in LibreOffice (note: in LibreOffice the text gradient doesn't seem to work on the other hand! but at least the text is readable):
Interestingly, in Slide Settings, while the preview is correct, the settings for color alterations aren't actually exposed anywhere in their UI:
Example in Microsoft Office 365 (note: while the background and text is okay, the images also aren't displayed! and the app displays some information about broken element that had to be removed: so at least it's explicit about it rather than doing it silently, but still quite interesting Microsoft broke compatibility with its own files):
Microsoft does expose the background color settings in their UI though:
And indeed if we press the "Reset" button under "Picture color" section (the second one), the image will be restored to look just like in the raw background's image file, and how it looks like in OnlyOffice (and hence the bug).
With that said, none of the options Microsoft exposes in the UI allow you to directly re-create the same effect that the original template has had. It almost looks like they specifically made this template to benchmark the Office XML compatibility of any alternative software... (with that said, I came across this issue while viewing actual random old presentation I had laying around on my drive, not specifically looking for it, so this being one of the default templates makes it something absolutely many people can come across realistically, so it's pretty problematic for compatibility)
In web-based PowerPoint the situation is just like above, except no warning.
In Google Docs the background is okay (but there also seems to be no text gradient effect + no images + there's PPTX compatibility warning displayed):
In WPS Office (background and text okay, no images):
In either of other softwares' cases, at least the background is okay, which makes the presentation readable, even if text gradient effect isn't supported.
Actual Behavior
In OnlyOffice it looks like this:
There is no support for background image's color alternations, which makes the text of this template completely unreadable. Which means OnlyOffice cannot be used to view this presentation.
Reproduction Steps
- Use that template from Microsoft Office 2013 or 2010 (looks like it was called "Mesh", not sure if it's still available there)
- Save a presentation and open it in OnlyOffice
For your convenience I also attach the file I used for testing (I've altered the original presentation files to anonymize them, re-formatted the XML files to be pretty-printed and re-zipped it all):
Additional information
Looks like the problematic definitions in XML are:
<!-- ppt/theme/theme1.xml -->
<a:bgFillStyleLst>
<a:solidFill>
<a:schemeClr val="phClr" />
</a:solidFill>
<a:gradFill rotWithShape="1">
<a:gsLst>
<a:gs pos="0">
<a:schemeClr val="phClr">
<a:tint val="90000" />
<a:lumMod val="110000" />
</a:schemeClr>
</a:gs>
<a:gs pos="100000">
<a:schemeClr val="phClr">
<a:shade val="64000" />
<a:lumMod val="98000" />
</a:schemeClr>
</a:gs>
</a:gsLst>
<a:lin ang="5400000" scaled="0" />
</a:gradFill>
<a:blipFill rotWithShape="1">
<a:blip
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
r:embed="rId1">
<a:duotone>
<a:schemeClr val="phClr">
<a:shade val="28000" />
<a:satMod val="94000" />
<a:lumMod val="20000" />
</a:schemeClr>
<a:schemeClr val="phClr">
<a:tint val="94000" />
<a:shade val="84000" />
<a:satMod val="148000" />
<a:lumMod val="114000" />
</a:schemeClr>
</a:duotone>
</a:blip>
<a:stretch />
</a:blipFill>
</a:bgFillStyleLst>
<!-- ppt/theme/_rels/theme1.xml.rels -->
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
<Relationship Id="rId1"
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"
Target="../media/image1.jpeg" />
</Relationships>
image1.jpeg:
As for what causes the two images (with their captions) on slide 2 not to display, I don't know. I think in the original Powerpoint, it was a template that had the wide caption element at the top and the two side-by-side section boxes below, I probably simply just drag-and-dropped those images there originally or something, so nothing too fancy. So even though the latest Powerpoint also lost the ability to display it, would be nice to fix that one too, especially given that LibreOffice can display them just fine.
Hello @p0358 , Thank you for your report. I have created bug 77855 for your issue.