convert jpg to RGB components
-
- Posts: 6
- Joined: 2012-09-24T10:23:12-07:00
- Authentication code: 67789
convert jpg to RGB components
I have jpg files and want to create single red, green and blue gray shade images. Is this possible?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: convert jpg to RGB components
I am not sure what you mean. If you mean to separate the RGB channels from the image, then
The result will be channel-0.png for red, channel-1.png for green and channel-2.png for blue.
Or
See
https://imagemagick.org/script/command- ... p#separate
https://imagemagick.org/Usage/color_basics/#separate
Code: Select all
convert image.jpg -separate channel.png
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
https://imagemagick.org/script/command- ... p#separate
https://imagemagick.org/Usage/color_basics/#separate