Bug 137733 - FILEOPEN PPTX: gradients in rectangle are hardly visible
Summary: FILEOPEN PPTX: gradients in rectangle are hardly visible
Status: RESOLVED DUPLICATE of bug 76682
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, filter:pptx, regression
Depends on:
Blocks: OOXML-Shapes
  Show dependency treegraph
 
Reported: 2020-10-25 12:49 UTC by Gerald Pfeifer
Modified: 2023-08-04 14:26 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Sample slide (PPTX) (1.16 MB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2020-10-25 12:49 UTC, Gerald Pfeifer
Details
Visual comparison Office 365 vs LibreOffice 7.1 (or 6.4) (78.61 KB, image/png)
2020-10-25 12:50 UTC, Gerald Pfeifer
Details
Comparison screenshot (3.4.0.1 vs 4.3.0.4) (109.72 KB, image/png)
2020-10-26 00:13 UTC, Aron Budea
Details
Screenshot with LibreOffice Impress as of 20230804 (29.88 KB, image/png)
2023-08-04 14:26 UTC, Gerald Pfeifer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerald Pfeifer 2020-10-25 12:49:41 UTC
Created attachment 166695 [details]
Sample slide (PPTX)

I've been looking through all open bugs referring to "gradient", and 
couldn't find one that fit?

The attached slide (PPTX) has several rectangles filled with gradients,
alternating left to right / right to left which show in Office 365.

In LibreOffice, all those rectangles appear filled with a solid color.

Version: 7.1.0.0.alpha0+
Build ID: 86d4419c6c4961c8b473decccea99338c176ffe1
CPU threads: 8; OS: Linux 5.8; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2020-10-21_08:38:05
Calc: threaded

...but also seen with 6.4.8, so no (recent) regression.
Comment 1 Gerald Pfeifer 2020-10-25 12:50:34 UTC
Created attachment 166696 [details]
Visual comparison Office 365 vs LibreOffice 7.1 (or 6.4)
Comment 2 Aron Budea 2020-10-26 00:11:57 UTC
Actually the shapes have gradient fill, but they're hardly visible. The primary reason is probably that MSO can handle gradients with several steps, while LO can only handle a start and an end color, probably conerting that during import is off in this case.

Confirmed with LO 7.1.0.0.alpha0+ (f1d798151048dde3f48b124ef406416668d1e9c5), 3.3.0 / Ubuntu.
It looks different before 4.4, and it looks reasonably fine in 3.4.0.1 and 3.3.0.

The change between 4.3 and 4.4 could be bibisected using repo bibisect-44max to the following commit.

https://cgit.freedesktop.org/libreoffice/core/commit/?id=f4a2f1e647354efb75be8c90384d6cd3e5f9b9bd
author		Tor Lillqvist <tml@collabora.com>	2014-07-14 20:23:22 +0300
committer	Tor Lillqvist <tml@collabora.com>	2014-07-16 18:21:27 +0300

"bnc#862510: Improve handling of OOXML gradients"

The change between 3.4 and 3.5 could be bibisected using repo bibisect-43all to the following range, out of which a particular commit is dealing with importing gradients from OOXML formats.
https://cgit.freedesktop.org/libreoffice/core/log/?qt=range&q=d6cde02dbce8c28c6af836e2dc1120f8a6ef9932..d419bfc9f7e6114af7461fab17dc0782397e5433

https://cgit.freedesktop.org/libreoffice/core/commit/?id=68e756de2ec7f9aeb1b6a6a28468745eca114715
author		Muthu Subramanian <sumuthu@novell.com>	2011-08-23 12:44:51 +0530
committer	Muthu Subramanian <sumuthu@novell.com>	2011-08-23 12:48:52 +0530

n#657896 - Gradient Transparencies and Muticolor Gradient fills.
Comment 3 Aron Budea 2020-10-26 00:13:26 UTC
Created attachment 166717 [details]
Comparison screenshot (3.4.0.1 vs 4.3.0.4)
Comment 4 NISZ LibreOffice Team 2021-01-25 11:34:23 UTC
This is just multi-step gradient in a shape not being supported.

*** This bug has been marked as a duplicate of bug 76682 ***
Comment 5 Gerald Pfeifer 2023-08-04 14:26:46 UTC
Created attachment 188773 [details]
Screenshot with LibreOffice Impress as of 20230804

This has been fixed with the work on multi-color gradients, verified with

  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

as of today.