Page 1 of 1

Create gradient with the size of an other image

Posted: 2013-02-20T10:41:49-07:00
by pbaumer2
Hi,

Please excuse the imagemagick newbie.

I would like to create a gradient image (canvas) which has the size of an exiting image file. How can this be done?

Thanks,

Paul

Re: Create gradient with the size of an other image

Posted: 2013-02-20T11:26:18-07:00
by fmw42
see http://www.imagemagick.org/Usage/canvas ... _gradients

example for the IM internal image rose:

convert rose: -sparse-color Barycentric '0,0 white 0,%h black' rose_size_gradient.png

Just substitute your image for rose: