Change Photometric value

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
Suganya
Posts: 1
Joined: 2016-05-30T23:15:06-07:00
Authentication code: 1151

Change Photometric value

Post by Suganya »

Hi,

I have a multi-page TIFF image. The photometric value of the first page is 2 and the second page is 1. How do i set the photometric value for all the pages to 1? Imagemagik is used as a part of our Java code.

Thanks!
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Change Photometric value

Post by snibgo »

TIFF documentation http://www.awaresystems.be/imaging/tiff ... ation.html says 1 is for grayscale, and 2 is for RGB. In both cases, zero is black.

If you want to change your images to grayscale, "-colorspace gray" will do that.
snibgo's IM pages: im.snibgo.com
Post Reply