Project

General

Profile

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:
Closed
Priority:
Normal
Category:
exif
Target version:
Start date:
19 Dec 2008
Due date:
% Done:

100%

Estimated time:
8.00 h

Description

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.

History

#1

Updated by Andreas Huggel over 10 years ago

  • Estimated time changed from 4.00 h to 8.00 h
#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