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 371925 - SVG gradients do not work
SVG gradients do not work
Status: RESOLVED INCOMPLETE
Product: GIMP
Classification: Other
Component: General
2.2.x
Other All
: Normal normal
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2006-11-07 10:14 UTC by margali
Modified: 2016-09-20 16:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description margali 2006-11-07 10:14:20 UTC
Please describe the problem:
SVG gradients (downloaded from openclipart.org as described in the documentation) appear black/invisible or as black/transparent stripes in the list of gradients and, if used with the gradient tool, fill is also black or whatever.

Steps to reproduce:
1. Download an svg gradient from openclipart.org (link is in section 3.9 of documentation) or download the entire package of clipart.
2. Install gradient as described in documentation (i.e. as any other gradient in a suitable path such as ~/.gimp-2.2/gradients/ in my case)
3. Restart gimp or refresh gradients.
4. Observe appearance of new gradient in list.
5. Use graident to fill area of image if desired and/or unconvinced.





Actual results:
Gradients and/or filled images are entirely black or transparent with black/grey stripes etc.

Expected results:
Gradients and/or filled images should be filled with, say, gold in the case of the metallic gold gradient or lime in the case of the lime one or whatever.

Does this happen every time?
Yes.

Other information:
If this is a problem with the gradients from openclipart, this report should be filed as a bug report regarding the documentation/help. Unfortunately, I don't have any other svg gradients to test gimp with. However, previews of other openclipart etc. appear to function perfectly normally in gimp - e.g. I can open the SVG versions of their other clipart in gimp just fine, so it doesn't seem to be a general SVG problem or, even, a general problem on my machine. 

Note that gimp knows that there are gradients there because if you accidentally include the radial gradients, it will complain about them and report those files as lacking linear gradients. So it clearly finds some sort of linear gradient in the other files. 

Mac OS X 10.4.8 PPC (gimp compiled from source)
Comment 1 Sven Neumann 2006-11-07 13:38:55 UTC
Please attach a gradient that doesn't work for you.
Comment 2 André Klapper 2006-12-06 00:18:23 UTC
margali, can you please attach an example?
Comment 3 Michael Schumacher 2007-01-14 15:35:52 UTC
I've picked an arbitrary SVG gradient from openclipart.org - works fine in both GIMP 2.2 and 2.3.

margali, without further feedback - i.e. an example of a gradient that does not work, but is valid otherwise - this bug will be closed as INOMPLETE.
Comment 4 Michael Schumacher 2007-03-18 21:51:35 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for.
Thanks!
Comment 5 Rod 2016-09-20 13:19:51 UTC
Windows 10 64 bit / GIMP-2.8.16 64 bit

SVG gradients not working in GIMP-2.8.16 same problem. A black tile shows in the dialog.
I created my own here
<defs>
<linearGradient id="myWhiteToBlueFireGrad" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" style="stop-color:rgb(255,255,255);
stop-opacity:1"/>
<stop offset="25%" style="stop-color:rgb(255,240,0);
stop-opacity:1"/>
<stop offset="50%" style="stop-color:rgb(245,125,0);
stop-opacity:1"/>
<stop offset="75%" style="stop-color:rgb(255,0,0);
stop-opacity:1"/>
<stop offset="100%" style="stop-color:rgb(0,10,195);
stop-opacity:1"/>
</linearGradient>
</defs>

Saved in my /.gimp-2.8/gradients folder as RD_myWhiteToBlueGradient.svg

Expected a white to blue linear gradient.

Results - A black tile.
Comment 6 Rod 2016-09-20 14:41:17 UTC
I figured out why GIMP won't open them. The code syntax is different now.

<defs>
<linearGradient id="myWhiteToBlueFireGrad">
<stop offset="5%" stop-color="#FFFFFF" />
<stop offset="25%" stop-color="#fff000" />
<stop offset="50%" stop-color="#f57d00" />
<stop offset="75%" stop-color="#ff0000" />
<stop offset="100%" stop-color="#000ac3" />
</linearGradient>
</defs>

Works!
Comment 7 Rod 2016-09-20 15:02:16 UTC
<defs>
<linearGradient id="myWhiteToBlueFireGrad">
<stop offset="0%" stop-color="#ffffff" />
<stop offset="10%" stop-color="#fff000" />
<stop offset="25%" stop-color="#fff000" />
<stop offset="75%" stop-color="#ff0000" />
<stop offset="100%" stop-color="#000ac3" />
</linearGradient>
</defs>

Actually keeps the white from starting so sharp.
Comment 8 Michael Schumacher 2016-09-20 16:35:00 UTC
Ugh.. please open a new report instead of commenting on such an ancient bug :)