Issue with Photometric Interpretation tag

1.4k views Asked by At

I'm capturing an image from an android mobile device and its in JPEG format. The image is of 72X72DPI and 24 bit. Now, when I try to convert this JPEG image to TIFF using LibTiff.Net and to set the tag Photometric Interpretation = 0 for MinIsWhite, the image turns negative (the white becomes black and black becomes white). The environment is Windows 8.1 64 bit, Visual Studio 2012. Can you please help/suggest how to resolve this issue? Any help is highly appreciated.

Thanks, Harshal

1

There are 1 answers

6
Bobrovsky On

Use Photometric.MINISBLACK instead of Photometric.MINISWHITE.

If you absolutely must use Photometric.MINISWHITE in your images then the only option is to invert image data before writing it to TIFF.