Good day!
I have a question concerning the Photometric values in TIFF images.
I would like to convert the compression of my image from "Deflate" to "LZW". I am doing this via your perl interface with these few steps:
1. Read Image
2. Set(compression=>"LZW");
3. Saving Image
The problem that occured is a change in the photometric value. Originally the value has been "minIsWhite" which is now "minIsBlack" thus inverting the colors of the image. I am using a 256 color gray-scale TIF.
Any ideas on how I can set the photometric value or leave the original value untouched?
Thanks and cheers for the great app!
-Basti
Change of photometric value
Re: Change of photometric value
From the command line you can change the polarity of the TIFF image with the quantum:polarity define. See http://www.imagemagick.org/script/formats.php#supported and browse down to the TIFF format.
Re: Change of photometric value
Ah yes this works flawlessly with the commandline tool.
Is this also possible with the perl interface? I haven't found any polarity or quantum modificators.
Is this also possible with the perl interface? I haven't found any polarity or quantum modificators.
Re: Change of photometric value
With PerlMagick, try something like
- $image->Set("quantum:polarity","min-is-white");