Page 1 of 1

Checking out the new GradientImage in 6.4.5-4

Posted: 2008-11-07T16:31:19-07:00
by rmagick
The previous edition of this thread seems to have drifted, so I'm starting a new thread. I'm still curious about the new support for radial and linear gradients. I've been using the SVG below as a test. Until 6.4.5-4, it produced a solid blue oval. In 6.4.5-4 it produces a solid black oval. The last I heard was this:
what is missing is the finishing touches on the gradient parser that sets the GradientInfo structure with multiple color stops. A fix for this problem is on our to-do list.
As before, I'm in no particular hurry for this to work, but I thought I'd check in to make sure I hadn't missed something.

Code: Select all

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">

<svg width="100%" height="100%" version="1.1" xmlns="http://www.w3.org/2000/svg">
<defs>
  <radialGradient id="grey_blue" cx="50%" cy="50%" r="50%" fx="50%" fy="50%">
    <stop offset="0%" style="stop-color:rgb(200,200,200); stop-opacity:0"/>
    <stop offset="100%" style="stop-color:rgb(0,0,255); stop-opacity:1"/>
  </radialGradient>
</defs>
<ellipse cx="230" cy="200" rx="110" ry="100" style="fill:url(#grey_blue)"/>
</svg>

Re: Checking out the new GradientImage in 6.4.5-4

Posted: 2008-11-07T18:25:46-07:00
by magick
The best solution is to finish the gradient parser and produce proper radial gradients. It is on the top of our list of new development but it still may be a month or so until we get to it.

Re: Checking out the new GradientImage in 6.4.5-4

Posted: 2008-11-07T19:14:16-07:00
by rmagick
magick wrote:The best solution is to finish the gradient parser and produce proper radial gradients. It is on the top of our list of new development but it still may be a month or so until we get to it.
It'll be worth waiting for, then. I'll keep checking. Thanks!

Re: Checking out the new GradientImage in 6.4.5-4

Posted: 2008-11-18T06:16:09-07:00
by rmabry
> The previous edition of this thread seems to have drifted

And if I may prompt further drifting ...

[How] can I test the radial gradient in PerlMagick?

Rick