GNOME Bugzilla – Bug 371925
SVG gradients do not work
Last modified: 2016-09-20 16:35:00 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)
Please attach a gradient that doesn't work for you.
margali, can you please attach an example?
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.
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!
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.
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!
<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.
Ugh.. please open a new report instead of commenting on such an ancient bug :)