EXIF APP1 segment too lrg with 5D Mark III raw files, even with --MakerNoteCanon

Started by alavigne314, July 23, 2012, 10:40:28 PM

Previous topic - Next topic

alavigne314

Hi, All

I'm trying to use exiftool to copy data from my Canon 5D Mark III raw files to some smaller .JPG files, and I'm using the following command line:

exiftool -tagsfromfile %d%f.CR2 -ext jpg .

this usually yields a "Error: EXIF APP1 segment too large! (68060 bytes) - ./JAL_3564.JPG type of error.  Not always, but usually.

I then try

exiftool --MakerNoteCanon -tagsfromfile %d%f.CR2 -ext jpg .

but to no avail (same error).

This worked fine with my older 5D Mark II.   I can only assume that some size limit is being regularly exceeded now in 5D Mark III raw files?

Any ideas on why the --MakerNoteCanon is not sufficiently reducing the size to avoid the error?

Thanks,
...Andrew

P.S. I'm using version 8.97.

Phil Harvey

Hi Andrew,

Thanks for pointing this out.  This will be fixed with ExifTool 8.98.

The problem is that the 5D Mark III adds an extra large binary data block to the maker notes that should be dropped when copying to JPEG.  Your idea of dropping the makernotes will work too, but you must put --makernotecanon after the -tagsfromfile option on the command line.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

alavigne314

Hi, Phil

Thanks for the quick reply, and for the good news that this will be fixed in 8.98.

Interestingly enough, though, placing --makernotecanon as you suggest (i.e. after -tagsfromfile) seems to be make no difference with respect to the occurrence of the error - it happens no matter where I put it.

Thanks for your time,

...Andrew 

Phil Harvey

Hi Andrew,

Perhaps you mis-typed --makernotecanon?  Otherwise, I can't explain why this doesn't work for you.

I get this:

> exiftool -ver
8.97

> exiftool a.jpg -tagsfromfile ../pics/CanonEOS5D_MarkIII.cr2
Error: EXIF APP1 segment too large! (68984 bytes) - a.jpg
    0 image files updated
    1 files weren't updated due to errors

> exiftool a.jpg -tagsfromfile ../pics/CanonEOS5D_MarkIII.cr2 --makernotecanon
    1 image files updated


- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

alavigne314

Yeah, I don't know either - I _think_ I'm doing it correctly:

>exiftool -ver
8.97

>exiftool JAL_3563.JPG -tagsfromfile JAL_3563.CR2 --makernotecanon
Error: EXIF APP1 segment too large! (65904 bytes) - JAL_3563.JPG     
    0 image files updated                                             
    1 files weren't updated due to errors                         

Would it be useful to see the output from 'exiftool JAL_3563.CR2'?

...Andrew

Phil Harvey

Hi Andrew,

Could you send me both the JPEG and CR2 images (philharvey66 at gmail.com)?  I would like to look into this.

Thanks.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

alavigne314

Hi, Phil

Sure, no problem.  You can access both files for download here:

http://alavigne.net/FileDownloads/index.jsp?dirselection=Dropbox/ForPhil

Let me know if you have any problems accessing the files, and thanks for having a look.

...Andrew Lavigne

Phil Harvey

Hi Andrew,

Thanks for the samples.  I understand what is happening now.

The problem is that the original JPEG image already contained maker notes which were very large (51kB), making the original APP1 61866 bytes and leaving little room for the other information you were trying to copy.

So just not copying the maker notes wasn't enough.  You would also need to create some extra room by doing something like deleting the original maker notes. This should work for you:

exiftool -makernotecanon= -tagsfromfile %d%f.CR2 --makernotecanon -ext jpg .

But I don't suggest doing this because it will delete all of the maker note information.  Also, this won't be a problem with version 8.98.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

alavigne314

Hi, Phil

Understood.   I see that 8.98 is now out, and I've just tried it.   The original issue is definitely now fixed.   Thanks a million times for your help!

...Andrew

moonwell

Just an FYI, I was experiencing the same issue with files from the 1D X, and the 8.98 update fixed the problem with those files as well.  Thanks!!!