<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>When Photoshop writes a .tif file, it automatically includes&nbsp;TIFF tag 700 XMP metadata, and&nbsp;TIFF tag 33723 IPTC metadata.&nbsp;The TIFF utilities tiffcp and geotifcp copy these Photoshop created .tif files. For example, the commands below read in image1.tif, and then write image2.tif, arranged into tiles 256x256, and include the XMP and IPTC metadata.</div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px; ">$ tiffcp &nbsp; -t -w 256 -l 256&nbsp;image1.tif image2.tif</span></font></div><div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px; ">$ geotifcp -t -w 256 -l 256 image1.tif image2.tif&nbsp;</span></font></div><div><br></div><div>The (unofficial ?) web page</div><div><a href="http://www.awaresystems.be/imaging/tiff/tifftags/iptc.html">http://www.awaresystems.be/imaging/tiff/tifftags/iptc.html</a></div><div>identifies TIFF tag 33723 IPTC as Type=UNDEFINED or 7,&nbsp;and yet tiffinfo shows that the Photoshop created .tif files have TIFF tag 33723 IPTC written as Type=LONG or 4. Why this difference?</div><div><br></div></div><div>The&nbsp;Kakadu version 6.3.0 supports reading and writing TIFF tag 700 XMP metadata, and TIFF tag 33723 IPTC metadata.&nbsp;There is no problem with XMP metadata, but when writing IPTC metadata, kdu_expand writes&nbsp;TIFF tag 33723 IPTC as Type=UNDEFINED or 7, in compliance with the awaresystems web page.</div><div><br></div><div>But then I observe that tiffcp and geotifcp both report the Kakadu written .tif has an "Incompatible type" for its TIFF tag 33723 IPTC metadata, even though the type conforms to the awaresystems web page, although that is different from what Adobe uses in Photoshop,&nbsp;and as a result the IPTC metadata is lost, and not included in the output .tif file.</div><div><br></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px; ">$ geotifcp&nbsp;-t -w 256 -l 256&nbsp;image01_v6_3_x86_03_64.tif image01_v6_3_x86_03_64_kduV630_1.tif</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px; ">TIFFFetchNormalTag: Warning, Incompatible type for "RichTIFFIPTC"; tag ignored.</span></font><br></div><div><br></div><div>Should I change the Kakadu source code so that it makes the same mistake Photoshop makes, and identifies TIFF tag 33723 IPTC metadata as Type=LONG or 4?</div><div>Greg</div></body></html>