Bug 113163 - FILEOPEN PPTX: EMF+ A color change to transparent on the image is missing on import (PPT OK)
Summary: FILEOPEN PPTX: EMF+ A color change to transparent on the image is missing on ...
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
6.0.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Bartosz
URL:
Whiteboard: target:7.1.0 target:7.0.4
Keywords: bibisected, bisected, filter:pptx, regression
Depends on:
Blocks: Regressions-EMFPlus-Rework
  Show dependency treegraph
 
Reported: 2017-10-16 21:14 UTC by Xisco Faulí
Modified: 2023-04-18 11:01 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
comparison MSO 2010 and LibreOffice 6.0 (55.54 KB, image/png)
2017-10-16 21:14 UTC, Xisco Faulí
Details
The pic extracted from test document (706.87 KB, image/x-emf)
2017-10-18 07:43 UTC, Armin Le Grand
Details
PPTX sample saved as PPT in MSO (156.50 KB, application/vnd.ms-powerpoint)
2020-10-28 07:54 UTC, Timur
Details
PPTX sample - with changed background to green (66.72 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2020-10-28 08:51 UTC, Bartosz
Details
PPTX sample - with transparency and alpha (52.23 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2020-11-02 13:10 UTC, Bartosz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xisco Faulí 2017-10-16 21:14:30 UTC
Created attachment 137023 [details]
comparison MSO 2010 and LibreOffice 6.0

Steps to reproduce:
1. Open attachment 87168 [details] from bug 67297

Observed behaviour: Left image is in front of the four images on the right. This should be the other way around.

Reproduced in

Version: 6.0.0.0.alpha0+
Build ID: d4daf634cd9ce8d422d49669c324a2220eba54a9
CPU threads: 4; OS: Linux 4.10; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group

[Bug found by office-interoperability-tools]
Comment 1 Xisco Faulí 2017-10-16 21:24:16 UTC
Regression introduced by

author	Armin Le Grand <Armin.Le.Grand@cib.de>	2017-06-12 13:27:16 (GMT)
committer	Thorsten Behrens <Thorsten.Behrens@CIB.de>	2017-07-15 09:01:29 (GMT)
commit 5868745db74ae930edb0058490076d82aaeafbe9 (patch)
tree 78bea29cb44b770d9e3affef2a303d0d38722d85
parent 83535a28c57ffb59f795dd35332d6b3426071e32 (diff)
emfplus: make VectorFormats Emf/Wmf/Svg work
make complete turn around and internal buffering
for Emf/Wmf/Svg work, including images in ODF and
re-save from UI. The correct FileType has to be
determined. It has shown that *.wmf exist that really
contain *.emf, so this turn around will not alter
the binary data, but may change the mimetype

Bisected with bibisect-linux64-6.0

Adding Cc: to Armin Le Grand
Comment 2 Armin Le Grand 2017-10-18 07:41:50 UTC
The EMF+ did not change the order of imported objects, so it may have changed their visualization. The obj in the foreground 'covers' the ones in the BG. It may have not had that white covering rectangle before, but the error is the order of import.
Checked again in PPT, I was wrong. The order is the same and okay, but in PPT the front object does not have that covering white filled rectangle, so a valid error and an error in object import (is it EMF+?)
Comment 3 Armin Le Grand 2017-10-18 07:43:14 UTC
Strange - extracted Bild1.emf fro the example, if opening it in draw/impress, there is no BG. Adding extracted pic
Comment 4 Armin Le Grand 2017-10-18 07:43:56 UTC
Created attachment 137067 [details]
The pic extracted from test document
Comment 5 Xisco Faulí 2018-02-13 11:31:55 UTC Comment hidden (obsolete)
Comment 6 Regina Henschel 2018-02-16 12:23:20 UTC
The error is not in importing the picture itself, but the pptx-file has an element a:clrChange as child of element a:blip, which changes the color FFFFFF to transparent.
Comment 7 Regina Henschel 2018-02-16 12:33:08 UTC
Arrangement is OK, but import of color change to transparent is missing. Changing the subject accordingly.
Comment 8 keter 2018-11-29 09:45:40 UTC
Version: 6.3.0.0.alpha0+ (x64)
Build ID: 0f25a3c36f27fd51453b9a9115f236b83c143684
CPU threads: 4; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-11-27_20:06:55
Locale: zh-TW (zh_TW); UI-Language: en-US
Calc: threaded

Bug not reproducible in version 6.3.0.0.alpha0+ (x64)

I think there is no bug with the left image; actually, the left image can be put behind by clicking right-click on the picture and click send backwards in the arrange, so the four images will be in front of the left image.
Comment 9 Xisco Faulí 2019-11-04 17:02:27 UTC
Still reproducible in

Version: 6.4.0.0.alpha1+
Build ID: fa7f07d23de31e5f1660a643d83ca8a2e565f69c
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded
Comment 10 Timur 2020-10-28 07:54:35 UTC
Created attachment 166788 [details]
PPTX sample saved as PPT in MSO

Repro 7.1+ with original PPTX. MSO saved PPT is OK.
Comment 11 Bartosz 2020-10-28 08:51:56 UTC Comment hidden (obsolete)
Comment 12 Bartosz 2020-10-28 13:54:02 UTC
*** Bug 119884 has been marked as a duplicate of this bug. ***
Comment 13 Bartosz 2020-11-02 13:10:52 UTC
Created attachment 166936 [details]
PPTX sample - with transparency and alpha

The issue is exists on both Transparency and Alpha Channel
Comment 14 Bartosz 2020-11-10 20:16:00 UTC
Solution is available here:
https://gerrit.libreoffice.org/c/core/+/105258
Comment 15 Commit Notification 2020-11-16 11:37:02 UTC
Bartosz Kosiorek committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/4a288c136c66b4dfbb75764602520d48c39fee81

tdf#113163 OOXML Fix transparency and alpha channel support

It will be available in 7.1.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 16 Xisco Faulí 2020-11-19 11:41:00 UTC
Verified in

Version: 7.1.0.0.alpha1+
Build ID: 2f7b5634487ac3d27777ab12a57089e71ea5216d
CPU threads: 4; OS: Linux 5.7; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

@Bartosz, thanks for fixing this issue!!
Comment 17 Commit Notification 2020-11-19 11:41:47 UTC
Bartosz Kosiorek committed a patch related to this issue.
It has been pushed to "libreoffice-7-0":

https://git.libreoffice.org/core/commit/560f8935c3b9d854128d414753f871fa38c6da2a

tdf#113163 OOXML Fix transparency and alpha channel support

It will be available in 7.0.4.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 18 Commit Notification 2020-11-20 10:08:46 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/c34b9acc18a357b904afa9538777072991a1e0a6

tdf#113163: sd_import: Add unittest

It will be available in 7.1.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 19 Ofir 2021-04-21 01:06:03 UTC
Bug #119884 is marked as duplicate but still not fixed.
https://bugs.documentfoundation.org/show_bug.cgi?id=119884