APP1 segment too large error while writing keywords to a jpg file

Started by Archive, May 12, 2010, 08:54:35 AM

Previous topic - Next topic

Archive

[Originally posted by lecisco on 2009-05-10 04:53:44-07]

Using exiftool 7.72 I was adding some keywords and other settings to a group of jpg files.  All went well except for one image.  That one failed to write the data with this message:
Code:
>   Error = Error writing output file
>     0 image files updated
>     1 files weren't updated due to errors
So I reran it with -v5 added, and among the almost 5000 lines of verbose text was this:
Code:
>   Rewriting XMP
>     + XMP-photoshop:CaptionWriter = 'Elena'
>     + XMP-dc:Creator = 'Elena'
>     + XMP-dc:Description = 'asdf'
>     + XMP-xmpRights:Marked = 'True'
>     + XMP-dc:Subject = 'a'
>     + XMP-dc:Subject = 'baby'
>     + XMP-dc:Subject = 'cat'
>     + XMP-dc:Title = 'asdf'
>   Error = APP1 segment too large! (84509 bytes)

I don't know why this file is any different than the other very similar images from the same photo-shoot but I am interested to find out why this one failed and what I could do to avoid it in the future.  Or could it be a bug in exiftool?

If it helps, I could provide the original jpg, though it's copyrighted and I don't want to post it in a public forum.

-- Steve

Archive

[Originally posted by exiftool on 2009-05-10 12:18:53-07]

Hi Steve,

If you could send the original jpg to philharvey66 at gmail.com, and
give me an example of the actual command line you used, then I'll
be able to tell you exactly what happened.

- Phil

Archive

[Originally posted by lecisco on 2009-05-10 13:11:40-07]

Thanks - I've sent the email.
-- Steve

Archive

[Originally posted by exiftool on 2009-05-11 11:14:14-07]

Hi Steve,

Thanks for the sample files.

Are you sure about the exiftool version you are using?
Version 7.72 should support extended XMP information.
The problem here is that the XMP APP1 segment is too large,
but multiple XMP segments have been supported since
version 7.50.

   - Phil

Archive

[Originally posted by lecisco on 2009-05-11 12:51:21-07]

Wow - you're right.  I had an old copy of version 7.25 that was getting picked up in this case by mistake.  I do have 7.72 installed but the old copy snuck in because of how the program invoking exiftool.exe was set up.  Sorry for the false alarm!

-- Steve