Print

Print


Hi Joel,

On Mar 23, 2011, at 10:57 AM, Richard, Joel M wrote:

> Dave, 
> 
> Thanks for the response... I tried this and it sort of works with a warning about IPTC, but that's an effect of the data in the TIFF. Here's some results of my experimentation and an example of what I've tried with exiftool.
> 
> exiftool -xmp test.tif -b > xmp.xml
> exiftool '-xmp<=xmp.xml' test.jp2
> 
> No namespace for XMP
> Warning: Can't write XMP:XMP (namespace unknown) - test.jp2
>    0 image files updated
>    1 image files unchanged
> 
> I must be doing something wrong, but I can't see anything obviously wrong in the XMP file. Or perhaps my technique is simply invalid. I'll admit I'm a newbie when it comes to exiftool.

Try:
exiftool -tagsfromfile xmp.xml test.jp2
instead of 
exiftool '-xmp<=xmp.xml' test.jp2
Dave Rice
avpreserve.com

> --Joel
> 
> On Mar 23, 2011, at 10:31 AM, Dave Rice wrote:
> 
>> On Mar 23, 2011, at 10:26 AM, Dave Rice wrote:
>> 
>>> Hi Joel,
>>> 
>>> On Mar 23, 2011, at 9:45 AM, Richard, Joel M wrote:
>>> 
>>>> Morning, all! 
>>>> 
>>>> I thought I'd crowdsource this question. 8+ hours of beating up on this and I haven't found a good solution.
>>>> 
>>>> We have some software that processes the scanned pages of a book. They come to me as TIFF and I am converting to JP2 in order to upload to the Internet Archive. The trouble is that I can't find a reliable piece of code or a process to add XMP metadata to the JP2. (FWIW, we're using the Jasper library)
>>>> 
>>>> - exiftool doesn't seem to be working either.
>>> 
>>> exiftool works for me. Can you send the command you're testing?
>>> If I run:
>>> exiftool -tagsfromfile source.tiff output.jp2
>>> then I do get the XMP copied from the tiff to the jp2.
>> 
>> Although a problem with this approach is that now an XMP that describes a tiff is embedded in a jp2. Perhaps you could parse the source XMP for selects and then use exiftool to write relevant tags to the output file.
>> 
>>> Best Regards
>>> 
>>> Dave Rice
>>> avpreserve.com