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???
Black and White photometirc interpretation
Re: Black and White photometirc interpretation
ImageMagick does not expose the photometric interpretation. Instead, look for a program called tiffinfo that returns that attribute.
Re: Black and White photometirc interpretation
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??
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
Try this command:
- identify -debug coder image.tif
Re: Black and White photometirc interpretation
i want the code in c#.net to find the photometric interpretation of the image.
is it possible??
is it possible??
Re: Black and White photometirc interpretation
The photometric information is not available from ImageMagick at this time.
Re: Black and White photometirc interpretation
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..?
Any way to avoid this.??
how to handle this..?