Checking out the new GradientImage in 6.4.5-4

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
rmagick
Posts: 245
Joined: 2006-03-16T17:30:48-07:00
Location: Durham, NC, USA

Checking out the new GradientImage in 6.4.5-4

Post 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>
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Checking out the new GradientImage in 6.4.5-4

Post 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.
rmagick
Posts: 245
Joined: 2006-03-16T17:30:48-07:00
Location: Durham, NC, USA

Re: Checking out the new GradientImage in 6.4.5-4

Post 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!
User avatar
rmabry
Posts: 148
Joined: 2004-04-13T11:25:27-07:00

Re: Checking out the new GradientImage in 6.4.5-4

Post 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
Post Reply