Write single page tiff

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
MurrayW
Posts: 5
Joined: 2018-12-04T17:48:21-07:00
Authentication code: 1152

Write single page tiff

Post by MurrayW » 2018-12-11T19:12:05-07:00

Hi all,

I am using ImageMagick-7.0.8-11-Q16-x64 on Windows 10.

To extract a single band from RGB images I have been using eg: convert Image.tif -channel R -separate ImageR.tif

ImageR.tif is showing: "Page Number: 1 2" in the Exiftool in XnView, and when I bring the to ArcMAP it asks which page I want to load. Can I specify that the output is to have only 1 page?

cheers
Murray

User avatar
fmw42
Posts: 25274
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Write single page tiff

Post by fmw42 » 2018-12-11T20:22:11-07:00

Try

Code: Select all

convert Image.tif[0] -channel R -separate ImageR.tif 

To get the red channel from the first layer/page. Change [0] to another number to get the appropriate layer or page's red channel. Note that numbering starts with 0 for the first layer/page.

MurrayW
Posts: 5
Joined: 2018-12-04T17:48:21-07:00
Authentication code: 1152

Re: Write single page tiff

Post by MurrayW » 2018-12-18T15:41:28-07:00

Thanks. That worked!

Post Reply