Bug 154257 - Export of circular gradient needs tileRect attribute
Summary: Export of circular gradient needs tileRect attribute
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.6.0.0 alpha0+
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: OOXML-Object-Fill Object-Fill-Gradient
  Show dependency treegraph
 
Reported: 2023-03-18 14:39 UTC by Regina Henschel
Modified: 2023-04-03 09:12 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
examples of circular gradient plus screenshot (35.76 KB, application/vnd.oasis.opendocument.text)
2023-03-18 14:39 UTC, Regina Henschel
Details
manually added tileRect (16.67 KB, application/zip)
2023-03-18 14:42 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2023-03-18 14:39:56 UTC
Created attachment 186047 [details]
examples of circular gradient plus screenshot

Open attached odt document and save it to docx. Open the document in Word. The outer circle of the gradient area has wrong position.

(MS Office uses a quadratic color interpolation in this case. If you change the gradient stop position from 0 to 1 in the file markup, MS Office will use the same linear color interpolation as LO. MS Office uses linear color interpolation also if a third gradient stop exists. So doubling the first color stop forces linear color interpolation as well. Such could be done on export, but would be a different problem.)
Comment 1 Regina Henschel 2023-03-18 14:42:29 UTC
Created attachment 186048 [details]
manually added tileRect

Here I have added the tileRect element manually in the markup. Opening that file in Word shows, that it fixes the export problem.

In addition, I have changed pos 0 to 1 to force linear color interpolation. That makes it easier to compare the rendering with the screenshots.
Comment 2 Buovjaga 2023-04-03 09:11:33 UTC
Repro, checked with office.com

Arch Linux 64-bit, X11
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 56ae7d01505fdae421109cfc78449230ba589d79
CPU threads: 8; OS: Linux 6.2; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 3 April 2023