Page 1 of 1
-channel
Posted: 2013-07-17T13:39:39-07:00
by GreenKoopa
-channel applies to -fx, but not -poly or -average. Is there reason?
Code: Select all
convert -size 500x500 xc:#F00 xc:#0FF -channel B -average ave.png
convert -size 500x500 xc:#F00 xc:#0FF -channel B -poly "0.5,1 0.5,1" poly.png
convert -size 500x500 xc:#F00 xc:#0FF -channel B -fx "(u+v)/2" fx.png
Re: -channel
Posted: 2013-07-17T14:20:23-07:00
by fmw42
use -channel b -separate for those other cases
Re: -channel
Posted: 2013-07-17T14:38:17-07:00
by GreenKoopa
Sure, I could do this:
Code: Select all
convert -size 500x500 xc:#F00 xc:#0FF ( -clone 0-1 -average ) -delete 1 -compose Copy_Blue -composite x.png
So -fx and -level supporting -channel is unnecessary. But it sure is convenient, so why the difference?
Re: -channel
Posted: 2013-07-17T14:51:38-07:00
by fmw42
As far a I know only some functions support the channel flag. Most were retrofit at needed. I don't think the channel flag was a part of IM 6 originally except in connection with -separate.
But the IM developers can explain further or correct me if needed.
Re: -channel
Posted: 2013-07-17T15:18:36-07:00
by magick
Many of the image filters support -channel in ImageMagick version 6. Channels are fully integrated into version 7, meaning any image filter, where it makes sense, supports a channel mask.
Re: -channel
Posted: 2013-07-17T21:58:04-07:00
by GreenKoopa
Thank you for the past history and future roadmap. All of your efforts are much appreciated!