Bug #593

The default type of Array element tags is incorrect

Added by Andreas Huggel over 10 years ago. Updated over 8 years ago.

Status:ClosedStart date:19 Dec 2008
Priority:NormalDue date:
Assignee:Andreas Huggel% Done:


Category:exifEstimated time:8.00 hours
Target version:0.21


It defaults to Ascii, which doesn't work when writing to an image:

ahuggel@mowgli> ./exiv2 -v -M'set Exif.CanonCs.0x002b 255' exiv2-empty.jpg 
File 1/1: exiv2-empty.jpg
Set Exif.CanonCs.0x002b "255" (Ascii)
Exiv2 exception in modify action for file exiv2-empty.jpg:
TIFF array element tag 43 has wrong type

See http://uk.groups.yahoo.com/group/exiv2/message/1472 for a discussion in a larger context.

PS: The error message could be more useful too...

Additional Information

ExifTags::tagType uses the global unknownTag to derive the type of an unknown tag.
Instead, that information should be taken from an group-specific unknown tag, eg, the end-of-list marker of each taglist.


#1 Updated by Andreas Huggel over 10 years ago

  • Estimated time changed from 4.00 to 8.00

#2 Updated by Andreas Huggel over 8 years ago

  • Status changed from New to Resolved
  • Assignee set to Andreas Huggel
  • Target version set to 0.21
  • % Done changed from 0 to 100

Fixed with r2334

#3 Updated by Andreas Huggel over 8 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF

Redmine Appliance - Powered by TurnKey Linux