Page 1 of 1

Change background color

Posted: 2019-06-18T08:05:05-07:00
by Gurthfin
Hello,
I want to change background color of image as i can with Photoshop Express App function Dappled. It can change grey background color to blue without "change foreground" color (text, frame). I wanna duplicate this effect and with more colors (In PSE app i only find to blue).

Original File:
Image

PSE file:
Image

My try with IM +level-colors blue
Image

Re: Change background color

Posted: 2019-06-18T08:12:53-07:00
by snibgo
See the "+level" documentation at http://www.imagemagick.org/script/comma ... .php#level

It takes two colours, for the black point and white point. Your command changes black to blue. But I think you want black to stay black, and change white to light blue, eg #ddf:

Code: Select all

magick bard-1.png +level-colors black,#ddf out.png

Re: Change background color

Posted: 2019-06-18T08:24:58-07:00
by Gurthfin
So I was one step from complete T_T . Thank you very much.

Re: Change background color

Posted: 2019-06-24T00:30:56-07:00
by Gurthfin
One more question:How to not colorize alpha channel(edge of card)? I want to print all cards (about 350), its waste of toner. I tried alpha off, but didnt work. When I look at base card in Photoshop, it look like there is no alpha channel, but edges are transparent.

Re: Change background color

Posted: 2019-06-24T06:04:14-07:00
by snibgo
You can restrict operations to just the RGB channels:

Code: Select all

magick bard-1.png -channel RGB +level-colors black,#ddf +channel out.png