Trying to open a 16 bit TIFF LAB colorspace with Magick++
Posted: 2012-06-28T20:40:59-07:00
Trying to open a Photoshop CS6 saved TIFF file with Magick++ generates "wrong data type 7 for RichTIFFIPTC; tag ignored. TIFFReadDirectory".
I tried using xnView to remove IPTC data, and I can successfully open that file with Magick++, however xnView converts 16 bit TIFFs to 8 bit, and also converts LAB colorspace TIFFs to RGB.
I need to run Magick++ on a 16 bit TIFF in LAB colorspace. The file is written this way from Photoshop, and I need accurate measurement -- and no calculations involved with the color.
So, I got a program called PhotoMe. I got a program called Exif Tag Remover. I told it to only remove IPTC data. I can still open the resulting file in Photoshop, and it's still a 16 bit TIFF in LAB.
But, now, Magick++ errors with: "unknown field with tag 37724 (0x935c) encountered. TIFFReadDirectory" and "Sorry, can not handle image." (I know the tag 37724 is a warning not an error -- it's the can not handle image part I'm writing about.)
How do I proceed? I know the original wrong data type 7 error is from libtiff. I'm on 3.8.2. Anyone know if that's been fixed? If I know it has, I could consider trying to upgrade, but I'm on CentOS, so that could be a giant mess with dependencies.
Otherwise, is there a known way to strip off the IPTC data without forcing a bit depth change and colorspace change through xnView?
I tried using xnView to remove IPTC data, and I can successfully open that file with Magick++, however xnView converts 16 bit TIFFs to 8 bit, and also converts LAB colorspace TIFFs to RGB.
I need to run Magick++ on a 16 bit TIFF in LAB colorspace. The file is written this way from Photoshop, and I need accurate measurement -- and no calculations involved with the color.
So, I got a program called PhotoMe. I got a program called Exif Tag Remover. I told it to only remove IPTC data. I can still open the resulting file in Photoshop, and it's still a 16 bit TIFF in LAB.
But, now, Magick++ errors with: "unknown field with tag 37724 (0x935c) encountered. TIFFReadDirectory" and "Sorry, can not handle image." (I know the tag 37724 is a warning not an error -- it's the can not handle image part I'm writing about.)
How do I proceed? I know the original wrong data type 7 error is from libtiff. I'm on 3.8.2. Anyone know if that's been fixed? If I know it has, I could consider trying to upgrade, but I'm on CentOS, so that could be a giant mess with dependencies.
Otherwise, is there a known way to strip off the IPTC data without forcing a bit depth change and colorspace change through xnView?