Interpolated lookup gradients with colour weighting
Posted: 2013-04-10T07:04:22-07:00
Hi,
I've read a few topics like this:
viewtopic.php?f=1&t=19812
And while that one does have a solution at the bottom, it's not really what I'm looking for. The colours sort of fade into eachother because of the method used and it is not a real gradient. Now I can have ImageMagick create a gradient with interpolated lookup and it is perfect, it even matches Photoshop's gradient identically to the naked eye, so long as the colour spacing is even, but what I really need to be able to do is weight the colours like you can in Photoshop's (and others) gradient creator. I know this isn't natively supported by ImageMagick as I have read the docs on it and they say that. I was just wondering if anyone has a good method to do this that they would be willing to share?
I will not know the weightings in advance (so I am not looking to setup a specific set of weightings, I want to be able to decide them on the fly). I have tried creating multiple 2 colour gradients with interpolation and piecing them together, this comes out noticeably different and not as pleasing to the eye as Photoshop, in fact it comes out identically to if I actually create the gradients myself using PHP GD.
Any help would be much appreciated!
I've read a few topics like this:
viewtopic.php?f=1&t=19812
And while that one does have a solution at the bottom, it's not really what I'm looking for. The colours sort of fade into eachother because of the method used and it is not a real gradient. Now I can have ImageMagick create a gradient with interpolated lookup and it is perfect, it even matches Photoshop's gradient identically to the naked eye, so long as the colour spacing is even, but what I really need to be able to do is weight the colours like you can in Photoshop's (and others) gradient creator. I know this isn't natively supported by ImageMagick as I have read the docs on it and they say that. I was just wondering if anyone has a good method to do this that they would be willing to share?
I will not know the weightings in advance (so I am not looking to setup a specific set of weightings, I want to be able to decide them on the fly). I have tried creating multiple 2 colour gradients with interpolation and piecing them together, this comes out noticeably different and not as pleasing to the eye as Photoshop, in fact it comes out identically to if I actually create the gradients myself using PHP GD.
Any help would be much appreciated!