I am not too familiar with PNM image, but try

convert \( image1.pnm -channel red -separate \) \( image2.pnm -channel red -separate \) \( image3.png -channel red -separate \) -combine result.tiff

or if there is truly only one channel (not likely with IM files - grayscale images typically have 3 channels), try

convert image1.pnm image2.pnm imag3.pnm -combine result.tiff

or if you need to force 3 channels before separating, try

convert \( image1.pnm -colorspace RGB -channel red -separate \) \( image2.pnm -colorspace RGB -channel red -separate \) \( image3.png -colorspace RGB -channel red -separate \) -combine result.tiff


see

http://www.imagemagick.org/Usage/channels/



Hello,

This is my first post on the imagemagick mailing list as I begin to use it
for personal research...

I would like to know if there is a way to merge 3 different greyscale images
into a single RGB image...

I cannot figure out if this should be done or not by the convert command
(options -adjoin or -coalesce )

My greyscale images are in PNM format (but I could also have them as TIFFs )

Can anyone point me out the right command?

Best regards

--
Mattia
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to