Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
xpt
Posts: 59 Joined: 2010-10-06T20:18:24-07:00
Authentication code: 8675308
Post
by xpt » 2010-10-11T14:57:41-07:00
Hi,
What's the simplest way to get a rectangular gradient like this:
Thanks
xpt
Posts: 59 Joined: 2010-10-06T20:18:24-07:00
Authentication code: 8675308
Post
by xpt » 2010-10-11T15:02:27-07:00
My solution:
Code: Select all
convert -size 106x106 radial-gradient: -negate -gravity center -crop 60x60+0+0 +repage -resize 100x75! gradient_radial.jpg
Good enough?
fmw42
Posts: 25562 Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Post
by fmw42 » 2010-10-11T15:18:27-07:00
Yes that would be a reasonable way to make an elliptical gradient from a radial-gradient.