Skip to content

Add option to preserve export file timestamps from EXIF capture date#1018

Merged
CyberTimon merged 1 commit intoCyberTimon:mainfrom
sevahul:copilot/add-preserve-source-file-timestamps
Apr 14, 2026
Merged

Add option to preserve export file timestamps from EXIF capture date#1018
CyberTimon merged 1 commit intoCyberTimon:mainfrom
sevahul:copilot/add-preserve-source-file-timestamps

Conversation

@sevahul
Copy link
Copy Markdown
Contributor

@sevahul sevahul commented Apr 12, 2026

Hi!
Thank you for this project - I am very happy to conveniently post-process the photos in the open-source Ubuntu project.
I have made the change about the exported image timestamps for myself, and thought it might be useful also for others.

Rationale

I wanted exported photos to be easily sortable by timestamp in external apps. In particular, this was an issue for me in Google Photos, where export ordering is much more reliable when file timestamps align with the original capture time.

Summary

  • add a new export option: Set File Timestamps from EXIF Capture Date
  • wire the new preserveTimestamps setting through export presets and both export UIs
  • when enabled, set output file timestamps (and exported mask files) based on EXIF capture datetime
  • include backend support using the filetime crate

Testing

  • tested on Ubuntu 24.04
  • verified that enabling the new option writes exported file timestamps from EXIF capture date
  • verified that disabled behavior remains unchanged

Main branch:

Exporting Resulting file
image image

Feature, enabled:

Exporting Resulting file
image image

Feature branch, the feature is disabled (matches the main branch):

Exporting Resulting file
image image

Copilot AI requested a review from CyberTimon as a code owner April 12, 2026 19:13
@sevahul sevahul force-pushed the copilot/add-preserve-source-file-timestamps branch from 26f52e6 to 90aab23 Compare April 12, 2026 19:16
@sevahul sevahul marked this pull request as draft April 13, 2026 21:41
@sevahul sevahul force-pushed the copilot/add-preserve-source-file-timestamps branch from 62907bd to 90aab23 Compare April 13, 2026 21:44
@sevahul sevahul marked this pull request as ready for review April 13, 2026 21:44
@CyberTimon
Copy link
Copy Markdown
Owner

Thanks @sevahul, this implementation looks a lot cleaner than before. Will merge now. Thanks for your contribution 💯 .

@CyberTimon CyberTimon merged commit 7159ee8 into CyberTimon:main Apr 14, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants