You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2012/07/29 20:56:40 UTC
[Bug 120396] New: svg export uses wrong color values in rgb function
in stop-color of gradient
https://issues.apache.org/ooo/show_bug.cgi?id=120396
Priority: P3
Bug ID: 120396
Assignee: ooo-issues@incubator.apache.org
Summary: svg export uses wrong color values in rgb function in
stop-color of gradient
Severity: normal
Issue Type: DEFECT
Classification: Application
OS: All
Reporter: rb.henschel@t-online.de
Hardware: All
Status: UNCONFIRMED
Version: AOO 3.4.0
Component: save-export
Product: drawing
Created attachment 78770
--> https://issues.apache.org/ooo/attachment.cgi?id=78770&action=edit
File to be exported
Open the attached document. It contains a rectangle with a gradient filling
from blue =rgb(0,0,255) to yellow =rgb(255,255,0) without transparency.
Export the document to svg-format.
Open the exported file in a browser or insert it in Draw document. Notice, that
the filling is black but should be a gradient.
The reason is, that the colors are written as rgb(0,0,1) and rgb(1,1,0)
That would mean nearly black.
The rgb expects either integer values 0..255 or values 0%..100%.
So instead of rgb(0,0,1) the value has to be rgb(0%,0%,100%) or rgb(0,0,255). I
prefer the latter, because it is convertible to the hexdigit syntax without
rounding errors.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 120396] svg export uses wrong color values in rgb function in
stop-color of gradient
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120396
Regina Henschel <rb...@t-online.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 120396] svg export uses wrong color values in rgb function in
stop-color of gradient
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120396
Regina Henschel <rb...@t-online.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Regina Henschel <rb...@t-online.de> ---
I tried it with my build of r1367616. And indeed, the error is fixed in the
meantime.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 120396] svg export uses wrong color values in rgb function in
stop-color of gradient
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120396
Armin Le Grand <Ar...@me.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |Armin.Le.Grand@me.com
--- Comment #1 from Armin Le Grand <Ar...@me.com> ---
ALG: Tried with fresh build (rev 1367054), could not reproduce. Neither
selection nor full page export produces bad svg's, both work as expected. The
svg contains:
<linearGradient id="Gradient_2" gradientUnits="userSpaceOnUse" x1="3781"
y1="-1368" x2="6219" y2="5368">
<stop offset="0" stop-color="rgb(0,0,255)"/>
<stop offset="1" stop-color="rgb(255,255,0)"/>
</linearGradient>
</defs>
<path fill="url(#Gradient_2)" stroke="none" id="Drawing_1_0" d="M 5000,4000
L 0,4000 0,0 10000,0 10000,4000 5000,4000 Z"/>
Could not reproduce.
--
You are receiving this mail because:
You are the assignee for the bug.