Feature #761

Setting metadata on an image should always succeed

Added by Andreas Huggel about 6 years ago. Updated over 5 years ago.

Status:ClosedStart date:22 Feb 2011
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:image format
Target version:0.22

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
Added by Andreas Huggel about 6 years ago

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

History

#1 Updated by Andreas Huggel about 6 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 over 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF

Redmine Appliance - Powered by TurnKey Linux