Creating colored gradient from a picture?

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.
Posts: 13034
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Creating colored gradient from a picture?

Post by snibgo »

maxlobo wrote:... but what about figuring out what are the most prominent colors in an image?
That is a common question on these forums, and a search will find answers.

But the effect you want might come from a heavy blur, eg shrinking to a small image (eg "-resize 3x3!") then enlarging that.

If you link to a sample, we can advise better.
snibgo's IM pages:

User avatar
Posts: 26383
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Creating colored gradient from a picture?

Post by fmw42 »

If using some version of Unix (Linux, MacOSX, Windows10 unix or Windows w/Cygwin), then see my scripts, imageborder and surroundblur at my link below.