Why is my color gradient so stepped?

Post questions on how to use or achieve an effect in Inkscape.
Soda
Posts: 2
Joined: Sat Jul 11, 2009 3:00 am

Why is my color gradient so stepped?

Postby Soda » Mon Jul 13, 2009 3:30 am

Hi,

I created a color gradient from #ffffffff to #666666ff with Inkscape. What I can't understand is, that you can see the single gray steps from the color gradient (see attached inkscape.png and zoom in).
Then i tried the same with gimp (gradient from #ffffff to #666666) and the output (see attached gimp.png and zoom in) is not so hard stepped then the inkscape output.

What goes wrong at Inkscape. Have I choose a wrong option or something like this?

The Steps at Inkscape was the following:
1.) Create new sheet with 320x240
2.) Create a rectangle :tool_rectangle: and changed the x,y,w,h to 0,0,320,240
3.) Selected it with :tool_selector: and created a gradient :tool_gradient:
4.) Selected for the top-left point #ffffffff and for the bottom-right one #666666ff
5.) Export as 320x240@90dpi

Anyone a clue what's wrong?


Thanks a lot
Soda
Attachments
gimp.png
Color Gradient Gimp Example
gimp.png (50.29 KiB) Viewed 2386 times
inkscape.png
Color Gradient Inkscape Example
inkscape.png (2.39 KiB) Viewed 2386 times

julo
Posts: 31
Joined: Thu Oct 30, 2008 3:29 am

Re: Why is my color gradient so stepped?

Postby julo » Mon Jul 13, 2009 7:53 pm


Soda
Posts: 2
Joined: Sat Jul 11, 2009 3:00 am

Re: Why is my color gradient so stepped?

Postby Soda » Mon Jul 13, 2009 8:27 pm

Thank you for you answer. It seems to be a bug and no good solution appear :(

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Why is my color gradient so stepped?

Postby microUgly » Sat Aug 01, 2009 9:59 am

Soda wrote:Thank you for you answer. It seems to be a bug and no good solution appear :(

Did you try my suggestion in the other thread to convert the SVG to PNG using Batik Rasterizer?

User avatar
aho
Posts: 180
Joined: Sun Nov 04, 2007 9:51 am
Contact:

Re: Why is my color gradient so stepped?

Postby aho » Sat Aug 01, 2009 10:47 am

Soda wrote:Thank you for you answer. It seems to be a bug and no good solution appear :(


It's not a bug - it's a shortcoming of the current implementation, which was optimized for speed instead of quality.

By the way the proper term for this kind of artifact is banding.


Return to “Help with using Inkscape”