Skip to Content.
Sympa Menu

cc-devel - Re: [cc-devel] XMP Embedding in TIFF, Bug?

cc-devel AT lists.ibiblio.org

Subject: Developer discussion for Creative Commons technology and tools

List archive

Chronological Thread  
  • From: Jason Kivlighn <jkivlighn AT gmail.com>
  • To: Hubert Figuiere <hub AT figuiere.net>
  • Cc: CC Developer Mailing List <cc-devel AT lists.ibiblio.org>
  • Subject: Re: [cc-devel] XMP Embedding in TIFF, Bug?
  • Date: Thu, 14 Jun 2007 16:29:03 -0700

Also, Adobe themselves specify this field to be of type BYTE:

www.*adobe*.com/devnet/*xmp*/pdfs/*xmp*_*specification*.pdf (page 92)

-Jason
> Hi Hubert,
>
> I seem to have come across a bug in Adobe's code for embedding XMP in
> the TIFF format. The spec[1] says that the XMLPacket tag has type BYTE,
> but Adobe assigns a type of UNDEFINED. libtiff complains and is unable
> to read the XMP when given the wrong type.
>
> In TIFF_Handler.cpp, changing
>
> this->tiffMgr.SetTag ( kTIFF_PrimaryIFD, kTIFF_XMP, kTIFF_UndefinedType,
> this->xmpPacket.size(), this->xmpPacket.c_str() );
>
> to
>
> this->tiffMgr.SetTag ( kTIFF_PrimaryIFD, kTIFF_XMP, kTIFF_ByteType,
> this->xmpPacket.size(), this->xmpPacket.c_str() );
>
> solves the problems I'm having.
>
> This should be passed on to Adobe. Do you know who to contact to get
> this fixed?
>
> Cheers,
> Jason
>
> [1] http://www.awaresystems.be/imaging/tiff/tifftags/xmp.html
>
>
>





Archive powered by MHonArc 2.6.24.

Top of Page