feature request : optionally preserve file timestamps

Bug #461840 reported by fredp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyexiv2
Fix Released
Wishlist
Olivier Tilloy

Bug Description

Image.writeMetadata() updates the timestamp of the image file.

It may be desirable to keep the original one instead. Currently this needs to be done in user code, using file stats or Exif date/time.

It would be useful to have an option to writeMetadata() that does it automatically, similar to the '-k' option of the exiv2 utility.

Revision history for this message
I. Form (iform) wrote :

This would be a very nice feature. +1

Revision history for this message
Olivier Tilloy (osomon) wrote :

This could probably be implemented as an optional "preserve_timestamp" parameter to ImageMetadata.write() (False by default, to keep backward compatibility).
Note however that this functionality isn't exposed in libexiv2 itself, it is build on top of it in the exiv2 command-line utility.

Changed in pyexiv2:
importance: Undecided → Wishlist
status: New → Triaged
Olivier Tilloy (osomon)
Changed in pyexiv2:
assignee: nobody → Olivier Tilloy (osomon)
status: Triaged → In Progress
Olivier Tilloy (osomon)
Changed in pyexiv2:
status: In Progress → Fix Committed
Olivier Tilloy (osomon)
Changed in pyexiv2:
milestone: none → 0.2.2
Olivier Tilloy (osomon)
Changed in pyexiv2:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.