Page 1 of 1

How to put different files into different channels of a file

Posted: 2009-05-27T09:15:22-07:00
by test84
Hi,
I'm trying to put different channels of different files into channels of a single file. To make myself more clear, I'm trying to read specular, normal maps and such things which are located on channels of various files and put them in R, G, B and Alpha channel of a single file.

Any ideas on how to do that?

Re: How to put different files into different channels of a file

Posted: 2009-05-27T12:47:39-07:00
by fmw42
convert \( image1 -channel blue -separate \) \
\( image2 -channel red -separate \) \
\( image3 -channel green -separate \) \
\( image4 -channel red -separate \) \
-channel rgba -combine \
newimage.png

choose whatever channels you want in the above from each image

Re: How to put different files into different channels of a file

Posted: 2009-05-28T01:58:32-07:00
by test84
Thank you man.

Re: How to put different files into different channels of a file

Posted: 2009-05-31T22:26:08-07:00
by anthony
See IM examples, Channels and Masks
http://www.imagemagick.org/Usage/channels/

This looks at a lot of different methods of extracting and re-combining channel images.