Project

General

Profile

Feature #761

Setting metadata on an image should always succeed

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

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
image format
Target version:
Start date:
22 Feb 2011
Due date:
% Done:

100%

Estimated time:

Description

The current implementation of Image::setMetadata() simply calls the set-methods for each type of metadata. However, by convention, these throw if a the image format doesn't support a particular type of metadata. As a result, Image::setMetadata cannot be used with several image formats.

Image::setMetadata() should be improved to use Image::checkMode() and only call the individual set-methods if the image format supports a particular type of metadata.

Alternatively, image formats can override setMetadata() and provide a specific version which works.

(Reported by Matthias Baas in http://dev.exiv2.org/boards/3/topics/818)

Associated revisions

Revision 2466 (diff)
Added by Andreas Huggel over 10 years ago

#761: Changed Image::setMetadata() to check if writing is supported (Matthias Baas).

History

#1

Updated by Andreas Huggel over 10 years ago

  • Status changed from New to Resolved
  • Target version set to 0.22
  • % Done changed from 0 to 100
#2

Updated by Andreas Huggel about 10 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF