Adjustments > black and white > preset feature

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
User avatar
fmw42
Posts: 25155
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Adjustments > black and white > preset feature

Post by fmw42 » 2019-01-22T16:26:53-07:00

exec("magick CloneOutput20190108040033.png hald-infrared.png -channel RGB -hald-clut +channel PNG24:5x.png");
By adding PNG24 your are turning off the alpha channel in your result so the background will not be transparent. The following works for me if you want grayscale alpha result.

Code: Select all

magick CloneOutput20190108040033.png  hald-infrared.png -channel rgb -hald-clut +channel result.png
or if you want truecolor alpha result then use

Code: Select all

magick CloneOutput20190108040033.png  hald-infrared.png -channel rgb -hald-clut +channel PNG32:result.png

mjamal
Posts: 62
Joined: 2017-12-27T06:13:59-07:00
Authentication code: 1152

Re: Adjustments > black and white > preset feature

Post by mjamal » 2019-01-23T00:49:53-07:00


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

Re: Adjustments > black and white > preset feature

Post by fmw42 » 2019-01-23T01:02:48-07:00

Yes there a question.

You cannot start with an image that has its transparency replaced by some checkerboard pattern. I showed that it works above if you start with a proper transparent image.

mjamal
Posts: 62
Joined: 2017-12-27T06:13:59-07:00
Authentication code: 1152

Re: Adjustments > black and white > preset feature

Post by mjamal » 2019-01-23T01:53:23-07:00

Hi Fred,

Yes now the issue has been resolved with your below command which I expected.
magick CloneOutput20190108040033.png hald-infrared.png -channel rgb -hald-clut +channel PNG32:result.png
Thanks a ton!

Post Reply