diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2021-11-23 00:35:44 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2021-11-23 00:35:44 +0100 |
| commit | 78f4d23b295f992e3066b878e0f5ef8dcf21ae51 (patch) | |
| tree | 4b34c8041ee30f771996bf33d12c90a3f59cede9 /src | |
| parent | 898b770726629b87df73a1064ee98f6a670269af (diff) | |
Change pri-order for exit dates
Date time can be when the image was last modified while orginal
and digitized are supposed to be at the time of creation.
Diffstat (limited to 'src')
| -rw-r--r-- | src/image.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/image.cc b/src/image.cc index c540387..9f668fe 100644 --- a/src/image.cc +++ b/src/image.cc @@ -141,13 +141,13 @@ void load_exif(std::filesystem::path const& path, ImageImpl* img) { break; } } - entry = exif_content_get_entry(data->ifd[EXIF_IFD_0], EXIF_TAG_DATE_TIME); + entry = exif_content_get_entry(data->ifd[EXIF_IFD_EXIF], + EXIF_TAG_DATE_TIME_ORIGINAL); if (!entry) { entry = exif_content_get_entry(data->ifd[EXIF_IFD_EXIF], - EXIF_TAG_DATE_TIME_ORIGINAL); + EXIF_TAG_DATE_TIME_DIGITIZED); if (!entry) { - entry = exif_content_get_entry(data->ifd[EXIF_IFD_EXIF], - EXIF_TAG_DATE_TIME_DIGITIZED); + entry = exif_content_get_entry(data->ifd[EXIF_IFD_0], EXIF_TAG_DATE_TIME); } } if (entry && entry->format == EXIF_FORMAT_ASCII) { |
