Swizzling Data
Posted: 2018-05-09T08:48:02-07:00
Swizzling channels seems to be unreasonable difficult to do with the commands available.
Here's what I've tried so far:
convert -channel BA -fill '#000000FF' <- doesn't seem to do anything or produce a warning, I still see blue in the final image
convert -channel-fx 'red, red, red, white' <- despite docs, white, 0, 1, 255, 0xFF isn't accepted
This is the only thing that kind of works, but I'm still at a loss for why I can't just fill a channel to 0 or 1 with channel-fx
convert -channel-fx 'red=>green red=>blue' <- tried to add white=>alpha here
The convert command line really needs a simple swizzle command (command 238) using r,g,b,a,i,0,1,#FF or #FFFF for a number.
convert -swizzle rgb1
convert -swizzle rg01
convert -swizzle rrrr1
convert -swizzle gggr
Here's what I've tried so far:
convert -channel BA -fill '#000000FF' <- doesn't seem to do anything or produce a warning, I still see blue in the final image
convert -channel-fx 'red, red, red, white' <- despite docs, white, 0, 1, 255, 0xFF isn't accepted
This is the only thing that kind of works, but I'm still at a loss for why I can't just fill a channel to 0 or 1 with channel-fx
convert -channel-fx 'red=>green red=>blue' <- tried to add white=>alpha here
The convert command line really needs a simple swizzle command (command 238) using r,g,b,a,i,0,1,#FF or #FFFF for a number.
convert -swizzle rgb1
convert -swizzle rg01
convert -swizzle rrrr1
convert -swizzle gggr