Page 1 of 1

Black and White photometirc interpretation

Posted: 2008-10-23T05:44:48-07:00
by sathish
I have a TIFF images, some of which have a photometric interpretation value of 0, and some have a value of 1. Depending on the value, the TIFF either displays correctly, or with black and white reversed (black background with white text).
i have to upload the TIFF image to server.
while uploading i have to check whether its a normal TIFF or TIFF with photometric interpretation.
how to check???

Re: Black and White photometirc interpretation

Posted: 2008-10-23T06:22:11-07:00
by magick
ImageMagick does not expose the photometric interpretation. Instead, look for a program called tiffinfo that returns that attribute.

Re: Black and White photometirc interpretation

Posted: 2008-10-23T22:13:52-07:00
by sathish
thanks for ur reply.
tiffinfo returns the attributes of all types of tiff images.
First i want to know whether its a normal TIFF, or with black and white reversed (black background with white text) before uploading the TIFF.
how to find the TIFF structure?
any sample code??

Re: Black and White photometirc interpretation

Posted: 2008-10-24T05:58:20-07:00
by magick
Try this command:
  • identify -debug coder image.tif
It should list the photometric interpretation of the image.

Re: Black and White photometirc interpretation

Posted: 2008-10-29T02:39:59-07:00
by sathish
i want the code in c#.net to find the photometric interpretation of the image.

is it possible??

Re: Black and White photometirc interpretation

Posted: 2008-10-29T05:43:02-07:00
by magick
The photometric information is not available from ImageMagick at this time.

Re: Black and White photometirc interpretation

Posted: 2008-11-05T02:37:09-07:00
by sathish
while scanning a document, sometimes the document scanned as negative image(i.e, with black backgound and with white text). i changed the scanner settings and tried, but occassionally it happens.
Any way to avoid this.??
how to handle this..?