After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 155752 - gradients not rendered properly
gradients not rendered properly
Status: RESOLVED FIXED
Product: librsvg
Classification: Core
Component: general
unspecified
Other Linux
: Low trivial
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2004-10-18 17:44 UTC by David Christian Berg
Modified: 2005-02-23 16:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sample svg with incorrect gradient (31.90 KB, image/svg)
2004-10-18 18:45 UTC, David Christian Berg
Details
the svg rendered with batik... the way it should look like (11.43 KB, image/png)
2004-10-18 18:46 UTC, David Christian Berg
Details

Description David Christian Berg 2004-10-18 17:44:14 UTC
This has something to do with transformed objects and screwed up svgs I think,
but batik renders them right anyways.
Now to show you, I _really_ need to upload files.
Comment 1 Dominic Lachowicz 2004-10-18 18:19:08 UTC
sure. click the "Create a new attachment" link.
Comment 2 David Christian Berg 2004-10-18 18:45:23 UTC
Created attachment 32743 [details]
sample svg with incorrect gradient
Comment 3 David Christian Berg 2004-10-18 18:46:24 UTC
Created attachment 32744 [details]
the svg rendered with batik... the way it should look like
Comment 4 Caleb Moore 2004-10-18 23:10:46 UTC
it appears that this is caused by a loss in presision in the gradient placement
algorithms as a result of the obscenely huge internal viewbox this drawing has
(30000x30000). (who knows why, it looks like it was done deliberately)

The current code that is in question was written by me personally, however I do
not pretend to actually understand what it does. It is possible that it could be
rewritten to retain it's precision far better, however I don't personally want
to since it took me so bloody long the first time.

to me, this seems very low priority, since it only is a factor in strange fringe
cases, but if dom wants to take a look at it, the function in question is
rsvg-paint-server.c:rsvg_paint_server_lin_grad_render (oh, and by the way,
simply changing the floats to doubles doesn't seem to fix it).
Comment 5 Caleb Moore 2004-10-18 23:27:34 UTC
Oh, and this is a gradient misrender in a VERY WEIRD circumstance and there is
NO BLOODY WAY it is "major", in fact, I'm putting it to "trivial" just to make a
statement. But I guess I'll confirm it while I'm at it.
Comment 6 David Christian Berg 2004-10-18 23:30:36 UTC
Lol, I said it had something to do with screwed up svgs... eventually I exported
them from Corel at some point.
Comment 7 Caleb Moore 2005-02-23 16:00:50 UTC
Ok, fixed now
Comment 8 Caleb Moore 2005-02-23 16:02:53 UTC
Ok, fixed now