[BZ#2273] LIBTIFF issues with IPTC from CS5 files.
Submitted by Kurt Heumiller (kb2zuz at gmail dot com) on 2010-11-22 13:14
Description
I have been running into issues with ImageMagick when trying to extract IPTC data from it. I reported the bug on the ImageMagick discussion forums and have been told this is an issue with libtiff.
Running most commands on TIFF files originating from Photoshop CS5 on a Mac appear to result in a warning of:
wrong data type 7 for "RichTIFFIPTC"; tag ignored. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/704.
including the tag -quiet removes the warning, however when attempting to use identify to extract IPTC data, it is unable to retrieve IPTC data, there is data:
[code]$ identify -format "%w|%h|%[IPTC:2:25]|%[IPTC:2:116]" ba-obj-872-0006-pub.tif
identify: ba-obj-872-0006-pub.tif: wrong data type 7 for "RichTIFFIPTC"; tag ignored. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/704.
4462|7235||[/code]
The IPTC fields can be viewed in Photoshop and Exiftool, however identify cannot read them.
[code]$ identify -version
Version: ImageMagick 6.6.5-0 2010-11-15 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: [/code]
A copy of the image in question can be downloaded here (warning: file size is about 92MB)
http://kurtimaging.com/ba-obj-872-0006-pub.tif
Attachment 471, "tif sample with RichTIFFIPTC":
2013718.tif