https://bugs.documentfoundation.org/show_bug.cgi?id=166283

            Bug ID: 166283
           Summary: Do not export radial gradient as pattern fill to SVG
                    but as radialGradient
           Product: LibreOffice
           Version: 25.8.0.0 alpha0+
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: filters and storage
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 200448
  --> https://bugs.documentfoundation.org/attachment.cgi?id=200448&action=edit
Source for export to SVG

Open attached file and export the page to SVG. Open the generated svg-file in a
browser and compare with the original.

Errors:
The exported fill is a <pattern>-Element instead of a <radialGradient> element.
The exported fill does not use all color steps.

The export uses for each shape is own fill definition. We could keep that, but
use the <radialGradient> element with absolute values for cx, cy and r. The
calculation would be: cx = shape pos x + offsetX * shape width, cy = shape pos
y + offsetY * shape height, r = 0.5 * sqrt(shape width^2 + shape height^2). Of
cause a gradient border would need to first be incorporated into the color stop
positions and the color stop positions need to be reversed for SVG.
I'll attache a svg-file to show what can be archieved.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to