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?
How to put different files into different channels of a file
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: How to put different files into different channels of a file
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
\( 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
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: How to put different files into different channels of a file
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.
http://www.imagemagick.org/Usage/channels/
This looks at a lot of different methods of extracting and re-combining channel images.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/