[magick-users] smooter gradients
Dean S. Messing
deanm at sharplabs.com
Sun Jul 22 01:54:03 PDT 2007
Anthony Thyssen wrote:
: Bob Meetin on wrote...
: | I'm using the following to create a gradient:
: |
: | convert -size 10x600 gradient:#000-#fff gradient.gif
: |
: | It creates the image fine, but the transition is not smooth See sample at:
: |
: | http://dottedi.biz/codesamples/themes2/graphics/img.gif
: |
: | I used 100x600 in this sample to make it easier to visualize the
: | problem. What option do I use to make this a smoother transition gradient?
: |
: This was a color quantization problem that was fixed in later IM's
:
: Download and install the latest release.
:
: In the latest IM
: convert -size 1x256 gradient: gradient.gif
:
: will produce an image with 256 pixel, each a different color.
: Using the 256 color limit of GIF file format.
:
: EG this should produce the number 256 (color count)
: convert -size 1x256 gradient: gif:- | identify -format %k -
On my laptop this produces 64, and the coutours in, say,
`convert -size 100x512 gradient: gradient.gif' are obvious.
I'm running:
=>identify -version
Version: ImageMagick 6.3.4 06/12/07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2007 ImageMagick Studio LLC
which I built myself.
Dean
More information about the Magick-users
mailing list