Bug #528
typeSize is meant for Exif metadata only
| Status: | Closed | Start: | ||
| Priority: | Normal | Due date: | ||
| Assigned to: | Andreas Huggel | % Done: | 100% |
|
| Category: | miscellaneous | |||
| Target version: | 0.18 | |||
Description
Metadatum::typeSize doesn't make sense for IPTC and XMP tags.
The current implementation of TypeInfo::typeSize gives wrong results if called for an Exif tag with a non-Exif (unknown) type-id.
Additional information:
r1205 introduced the XMP type LangAlt. Because its typesize is set to 1, the regression test for bug 495 now fails. This happens because the typesize of the new XMP type is used to calculate the size of a tag which happens to have Exif type 17.
History
Updated by Andreas Huggel 589 days ago
Introduced proper TiffType, which is used in the new Exif parser. All TIFF types (values 0x0000 - 0xffff) are now a reserved subset of Exiv2 types. Type size was not changed, it is a secondary issue, the main problem was that TypeId 17 was an Exiv2 XMP type but also a possible value for a TIFF type.
Updated by Andreas Huggel 450 days ago
- % Done changed from 0 to 100
Updated by Andreas Huggel 449 days ago
- Status changed from Resolved to Closed