Bug 156704 - FILEOPEN PPTX: blocks with color gradients are shaded differently (with same color)
Summary: FILEOPEN PPTX: blocks with color gradients are shaded differently (with same ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: PPTX-Shapes
  Show dependency treegraph
 
Reported: 2023-08-09 22:45 UTC by Gerald Pfeifer
Modified: 2023-08-26 00:47 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample slide (PPTX) (67.70 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2023-08-09 22:45 UTC, Gerald Pfeifer
Details
Visual comparison Office 365 (left) vs LibreOffice (right) (34.55 KB, image/png)
2023-08-09 22:46 UTC, Gerald Pfeifer
Details
Minimized example file to visualize the problem better (60.51 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2023-08-13 19:35 UTC, Gabor Kelemen (allotropia)
Details
The minimal example in PP 2016 and fresh master (132.31 KB, image/png)
2023-08-13 19:55 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerald Pfeifer 2023-08-09 22:45:37 UTC
Created attachment 188889 [details]
Sample slide (PPTX)

1. Open sample slide in Impress as well as PowerPoint
2. Compare and see how
   a. on the right in blocks get darker from top to bottom instead
      of the other way around;
   b. how the "Shiva" and "Shakti" blocks do not fit in well.

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 47ca3f1f762352b488d58b3bf23d5776576f1cca
CPU threads: 8; OS: Linux 6.4; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US

and all the way back to version 6.4 at least.
Comment 1 Gerald Pfeifer 2023-08-09 22:46:15 UTC
Created attachment 188890 [details]
Visual comparison Office 365 (left) vs LibreOffice (right)
Comment 2 Regina Henschel 2023-08-10 00:01:21 UTC
We have two features here, which are not implemented in LibreOffice and which cannot be expressed in ODF:
1. Rotate background with shape (see also bug 34551)
2. Fill of a group shape.
Comment 3 Gabor Kelemen (allotropia) 2023-08-13 19:35:07 UTC
Created attachment 188953 [details]
Minimized example file to visualize the problem better
Comment 4 Gabor Kelemen (allotropia) 2023-08-13 19:55:07 UTC
Created attachment 188954 [details]
The minimal example in PP 2016 and fresh master

This shows better that the gradient is applied to the two grouped shapes individually, instead of together as a group.
Comment 5 Regina Henschel 2023-08-13 20:12:16 UTC
A group does only grouping and has no style at all. Changing this in LibreOffice requires a change to the ODF standard.

If you stay in OOXML format, you could keep the information in the InteropGrabBag. The SdrObject has already the member mpFillGeometryDefiningShape. There is a comment in https://opengrok.libreoffice.org/xref/core/include/svx/svdobj.hxx?r=bf570139#272. Perhaps that is usable in this context.

Are you going to implement something?