Project

General

Profile

Bug #731

Error: Directory NikonPreview, entry 0xXXX has invalid size XXX*1; skipping entry.

Added by Ariel Garcia about 11 years ago. Updated about 11 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Start date:
26 Sep 2010
Due date:
% Done:

0%

Estimated time:

Description

When running

exiv2 -pc tree.jpg

on a jpg created with a Nikon camera (and reprocessed with gimp afterwards)
i get tons of Error messages like the following

$ exiv2 -pc tree.jpg
Error: Directory NikonPreview: Next pointer is out of bounds; ignored.
Warning: Directory NikonPreview, entry 0x0000 has unknown Exif (TIFF) type 8224; setting type size 1.
Error: Directory NikonPreview, entry 0x0000 has invalid size 538976288*1; skipping entry.
[...]
Warning: Directory NikonPreview, entry 0x2020 has unknown Exif (TIFF) type 512; setting type size 1.
Error: Offset of directory NikonPreview, entry 0x2020 is out of bounds: Offset = 0x00010201; truncating the entry
[...]

See the attached file for details.

Ubuntu Bug:
https://bugs.launchpad.net/debian/+source/exiv2/+bug/601555

Debian Bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=598079

Related information:
http://mail.kde.org/pipermail/digikam-users/2009-July/007947.html


Files

ff (13.5 KB) ff exiv 2 -pc stderr output Ariel Garcia, 26 Sep 2010 02:20

History

#1

Updated by Andreas Huggel about 11 years ago

  • Status changed from New to Feedback

I'm not sure what exactly this bug report claims is wrong.

Such messages typically indicate that part of the metadata structure (the Nikon preview IFD in this case) of the image was corrupted during an earlier image processing step. Exiv2 thus cannot read nor write to that part of the metadata. It can still read and write other parts of the Exif metadata.

Exiv2 writes to Nikon images without corrupting this IFD, at least recent versions, which know about it do. So if the image metadata was corrupted by exiv2, please test with exiv2 0.20 and provide steps to reproduce the problem.

If the complaint is that these errors and warnings should be suppressed, then this is related to #476 and #614 which have been resolved recently.

As the bug seems to have originated from a digiKam user: libkexiv2, which is used by digiKam, was also changed (just yesterday) to make use of that new functionality. Please checkout exiv2 and libkexiv2 from SVN and build digiKam with these to test it.

#2

Updated by Ariel Garcia about 11 years ago

Thanks Andreas,
yes you are right, sorry...

I now checked and the messages don't come up with the original (Nikon) .JPG (nor .NEF), but only for the GIMP-postprocessed files!! :-(
So i guess the bug has to be filled against Gimp...

Thanks again and sorry for the dummy bug.

#3

Updated by Ariel Garcia about 11 years ago

To be more concrete: i checked the cameras' original .JPG -> no errors nor warnings
and then opened and saved (no editing took place) that same file with Gimp -> error message appeared.

#5

Updated by Andreas Huggel about 11 years ago

  • Status changed from Feedback to Rejected

Also available in: Atom PDF