Page 1 of 1

convert jpg to RGB components

Posted: 2019-10-18T09:45:53-07:00
by clownpleco
I have jpg files and want to create single red, green and blue gray shade images. Is this possible?

Re: convert jpg to RGB components

Posted: 2019-10-18T10:00:57-07:00
by fmw42
I am not sure what you mean. If you mean to separate the RGB channels from the image, then

Code: Select all

convert image.jpg -separate channel.png
The result will be channel-0.png for red, channel-1.png for green and channel-2.png for blue.

Or

Code: Select all

convert image.jpg -channel r -separate red.png
convert image.jpg -channel g -separate green.png
convert image.jpg -channel b -separate blue.png
See
https://imagemagick.org/script/command- ... p#separate
https://imagemagick.org/Usage/color_basics/#separate