Bug 119884 - Color alpha replacement ignored in PPTX import
Summary: Color alpha replacement ignored in PPTX import
Status: RESOLVED DUPLICATE of bug 149670
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL: https://support.microsoft.com/en-us/t...
Whiteboard:
Keywords: filter:pptx
Depends on:
Blocks: PPTX-Images
  Show dependency treegraph
 
Reported: 2018-09-14 15:47 UTC by Ofir
Modified: 2023-04-18 11:01 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
PPTX with color replacement (31.73 KB, application/zip)
2018-09-14 15:48 UTC, Ofir
Details
PDF exported from PowerPoint 2013 showing the expected result (3.41 KB, application/pdf)
2018-09-14 15:49 UTC, Ofir
Details
PPTX with white change to transparent (55.81 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2021-11-26 13:04 UTC, Ofir
Details
PDF of white set to transparent exported from PowerPoint 2013 showing the expected result (26.16 KB, application/pdf)
2021-11-26 13:05 UTC, Ofir
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ofir 2018-09-14 15:47:44 UTC
Description:
The attached PPTX has a shape image of blue rectangle with green background.
The green background is replaced with transparency in PowerPoint 2013.
In impress the green background is not replaced.

Steps to Reproduce:
1. Open the attached PPTX in Impress.
2. Compare to the attached PDF exported from PowerPoint 2013.

Actual Results:
The blue rectangle has green background.

Expected Results:
The green background should be replaced with transparency.


Reproducible: Always


User Profile Reset: No



Additional Info:
The XML of the <p:pic> shape with the <a:clrChange> element in slide1.xml:

<p:pic>
	<p:nvPicPr>
	  <p:cNvPr id="6" name="Picture 5"/>
	  <p:cNvPicPr>
		<a:picLocks noChangeAspect="1"/>
	  </p:cNvPicPr>
	  <p:nvPr/>
	</p:nvPicPr>
	<p:blipFill>
	  <a:blip r:embed="rId2">
		<a:clrChange>
		  <a:clrFrom>
			<a:srgbClr val="22B14C"/>
		  </a:clrFrom>
		  <a:clrTo>
			<a:srgbClr val="22B14C">
			  <a:alpha val="0"/>
			</a:srgbClr>
		  </a:clrTo>
		</a:clrChange>
		<a:extLst>
		  <a:ext uri="{28A0092B-C50C-407E-A947-70E740481C1C}">
			<a14:useLocalDpi xmlns:a14="http://schemas.microsoft.com/office/drawing/2010/main" val="0"/>
		  </a:ext>
		</a:extLst>
	  </a:blip>
	  <a:stretch>
		<a:fillRect/>
	  </a:stretch>
	</p:blipFill>
	<p:spPr>
	  <a:xfrm>
		<a:off x="5386640" y="2341783"/>
		<a:ext cx="1905770" cy="1905770"/>
	  </a:xfrm>
	  <a:prstGeom prst="rect">
		<a:avLst/>
	  </a:prstGeom>
	</p:spPr>
  </p:pic>
Comment 1 Ofir 2018-09-14 15:48:55 UTC
Created attachment 144868 [details]
PPTX with color replacement
Comment 2 Ofir 2018-09-14 15:49:18 UTC
Created attachment 144869 [details]
PDF exported from PowerPoint 2013 showing the expected result
Comment 3 Roman Kuznetsov 2018-09-23 15:54:25 UTC
confirm it in

Version: 6.1.2.1 (x64)
Build ID: 65905a128db06ba48db947242809d14d3f9a93fe
CPU threads: 4; OS: Windows 10.0; UI render: GL; 
Locale: ru-RU (ru_RU); Calc: CL
Comment 4 Xisco Faulí 2018-10-04 15:58:31 UTC
Also reproduced in

Version: 5.2.0.0.alpha0+
Build ID: 3ca42d8d51174010d5e8a32b96e9b4c0b3730a53
Threads 4; Ver: 4.10; Render: default; 

Version: 4.3.0.0.alpha1+
Build ID: c15927f20d4727c3b8de68497b6949e72f9e6e9e

Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)

LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 5 Ofir 2019-05-24 21:41:41 UTC Comment hidden (obsolete)
Comment 6 Xisco Faulí 2019-10-22 19:32:40 UTC Comment hidden (obsolete)
Comment 7 Bartosz 2020-10-28 13:54:02 UTC

*** This bug has been marked as a duplicate of bug 113163 ***
Comment 8 Ofir 2021-04-21 01:01:05 UTC Comment hidden (obsolete)
Comment 9 Xisco Faulí 2021-04-21 07:24:49 UTC
Yes. still reproducible in

Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: 93bb5fcba9e58eeeaaed9521c3bb4eecf9b91ac1
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, I thought you might be interested in this issue
Comment 10 Timur 2021-04-21 09:16:04 UTC
In MSO this is No fill in Format Picture. I don't see transparency. 
In LO I don't see a way to change this green, no Area in right-click and Area in Sidebar is not applying. 
"No fill" is in other bugs also. 
No repro for PPT from MSO.
Comment 11 NISZ LibreOffice Team 2021-05-12 09:04:38 UTC
This is the "Set Transparent Color" feature on the Image ribbon - Color dropdown.
Comment 12 Ofir 2021-11-26 13:04:15 UTC
Still reproducible.

The attached white-transparent.pptx has a related but different issue. It has a green shape and an image above it. The image white color is set to transparent.
The image white background replacement to transparency works but it also hides the blue line in the image.

To summarize:
1. Changing non white color to transparent doesn't work on PPTX import.
2. Changing white to transparent works on PPTX import but also hides the blue color.
Comment 13 Ofir 2021-11-26 13:04:57 UTC
Created attachment 176522 [details]
PPTX with white change to transparent
Comment 14 Ofir 2021-11-26 13:05:57 UTC
Created attachment 176523 [details]
PDF of white set to transparent exported from PowerPoint 2013 showing the expected result
Comment 15 Gabor Kelemen (allotropia) 2023-04-18 10:36:41 UTC
The first file looks good in 7.5 since:

https://git.libreoffice.org/core/+/2b902b6203a87bdca7856e17a9c0fcc403de4264

author	Sarper Akdemir <sarper.akdemir@collabora.com>	Thu Sep 01 14:59:51 2022 +0300
committer	Miklos Vajna <vmiklos@collabora.com>	Mon Sep 05 10:01:40 2022 +0200

tdf#149670 fix color change api and adjust tolerance for ooxml

The second file is still bad, the blue line (which is part of a png file) is still missing - so indeed a separate issue.

However the blue line was visible until 6.4 and the green square was not. This changed in 7.0:

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

author	Bartosz Kosiorek <gang65@poczta.onet.pl>	Tue Nov 03 16:48:08 2020 +0100
committer	Xisco Fauli <xiscofauli@libreoffice.org>	Thu Nov 19 12:41:06 2020 +0100

tdf#113163 OOXML Fix transparency and alpha channel support

*** This bug has been marked as a duplicate of bug 149670 ***