Page 2 of 2

Re: changing the whole color of a png icon preserving the edges alpha

Posted: 2018-10-09T09:30:42-07:00
by fmw42
Use sparse-color to make a two point gradient. See https://imagemagick.org/Usage/canvas/#t ... _gradients

Code: Select all

magick icon.png -channel RGB -sparse-color barycentric '0,0 blue 0,%h red' -alpha on icon2.png

Re: changing the whole color of a png icon preserving the edges alpha

Posted: 2018-10-09T10:35:00-07:00
by artech
Thank you both for quick answers. Worked like a charm.