0.75: File date not modified when changing exif date

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
CameronD
Posts: 311
Joined: Wed Aug 01, 2007 1:28 pm
Location: Australia

0.75: File date not modified when changing exif date

Post by CameronD »

XnView MP x64 0.75.
Options set to always update "File modification date/time" when a file is modified.

I am working on old scanned photos, and so the date taken is always wrong, and date digitized is often not set.
If I use Tools->Change Timestamp to modify/set these exif values then the file modification time is not updated, even though the file has obviously been modified.

This has several consequences:
  • The files are not backed up properly
  • The browser details list is not updated to reflect the new value
  • The database content is not corrected, so it retains the previous value. I need to do a manual "update catalog from files"
The latter two bugs would apply no matter what my options are for handling file modification date.
spokesrider
Posts: 1
Joined: Thu May 05, 2016 4:46 am

Re: File date not modified when changinf exif date

Post by spokesrider »

I'm new to XnView MP - having used it only for about a week. I'm very glad to have found it, but have run into this problem, too, with file modification dates not getting updated. Has anyone found a way of dealing with it? My main concern at the moment is backup.

XnView MP 0.79 x64, on Windows 7
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: File date not modified when changinf exif date

Post by xnview »

could you tell me how to reproduce this bug?
Pierre.
User avatar
XnTriq
Moderator & Librarian
Posts: 6512
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: File date not modified when changinf exif date

Post by XnTriq »

Please check your configuration in Tools » Settings... » General » File operations » Keep original date/time:
  • File saving
  • Lossless transformations
  • Embedded Metadata change
Dominius
Posts: 43
Joined: Mon Nov 28, 2016 9:58 am

Re: File date not modified when changing exif date

Post by Dominius »

I don't think that's what the OP means. I've noticed this also with version 0.83; the file modification times appear in mouse-overs as "Date Taken." This is incorrect.

Come on, folks. Even IrfanView (of which I use the latest version in Wine) has an option to show the real Date Taken, when that information can be found in an EXIF header, at the bottom of the image. If Irfan Skildjan can do it with his Windows-only app, so can Pierre-e Gougelet with his cross-platform opus.

Dominius.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: File date not modified when changing exif date

Post by xnview »

Dominius wrote:I don't think that's what the OP means. I've noticed this also with version 0.83; the file modification times appear in mouse-overs as "Date Taken." This is incorrect.
Sorry but i don't understand the problem with 'Date taken'?? Please post a screenshot
Pierre.
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: 0.75: File date not modified when changing exif date

Post by helmut »

By default, XnView 0.83 and before uses the following entry for tooltips:
"<b>{Filename}</b><br>{Modified Date} - {Date taken}<br>{Size KB} Kib"

The placeholder {Date taken} for EXIF date taken is wrong, correct is {EXIF:Date taken}. In XnView 0.84 the default is correct, when updating and using your .ini files please check in Tools » Settings | Browser | Browser whether the tooltip is set properly.
CameronD wrote:XnView MP x64 0.75.
Options set to always update "File modification date/time" when a file is modified... .
I've tried to reproduce the problem but I cannot find such an option. Could someone please give me a hint?
CameronD
Posts: 311
Joined: Wed Aug 01, 2007 1:28 pm
Location: Australia

Re: 0.75: File date not modified when changing exif date

Post by CameronD »

helmut wrote:
CameronD wrote:XnView MP x64 0.75.
Options set to always update "File modification date/time" when a file is modified... .
I've tried to reproduce the problem but I cannot find such an option. Could someone please give me a hint?
I'm going crazy - I'm sure I replied to this a day or so ago.

But I don't know why I did not reply 8 months ago - sorry.

My original post was nothing to do with the tooltip - it is the fact that my preferences are not being followed.

By those options, I meant the setting general->File operations -> "keep original date/time" is off for all 3 conditions, as XnTriq illustrated.

I have muddied the waters a bit by mentioning this in several other threads, usually in conjunction with another bug. I shall try to ensure this particular one is discussed and treated here.

To reproduce:
  • Set preference to keep original date/time for Embedded metadata change to unchecked/off.
  • select an image
  • tools-> change timestamp
  • Use: any date/time you like (safest is EXIF:Date Taken and offset by 1 second).
  • select only EXIF:Date Taken to change
  • write
  • because of other possible bugs, browse to another folder and then back.
Expected result: The image's File:Modified Date should be updated to current date/time
Actual result: The image's File:Modified Date is unchanged.


This brings up an interesting issue, where the software is getting somewhat contradictory instructions.

The Exif date/time values are embedded metadata and so, by my preferences, the filesystem metadata File: last modified date should be automatically updated if I change any exif values.
The conflict is that, in the dialog box where I have, for example, ticked "EXIF: Date Taken" and assigned a value, there is another checkbox labelled "File: Modified Date", which is not ticked. Unfortunately, the operation of this checkbox has two options, neither of which is correct:
  1. ticked: assign the same date taken (in my current cases, early in the 20th century) to be the file modified date. This is obviously wrong.
  2. unticked: when the image metadata is written and the file modified date is automatically updated by the operating system, then the program actively overrides this by reinstating the previous value
This problem comes from having File and Exif metadata in the same dialogue, and changing Exif metadata should have a side-effect of changing the File metadata.

Possible options for improvement:
  • split the dialog into separate windows for file and exif metadata. This will not suit anybody who wants to assign both types to one value. I never work like that, but some users might.
  • Add an option, perhaps near "create exif metadata if needed" and label it "Update File modify date if exif metadata written".
    • This should by default be ticked or not according to the user preference for keep original date/time for Embedded metadata change.
    • It could be deactivated if the "File: Modified date" is checked.
The last option is my preferred solution, or else just make the code follow my preferences.
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: 0.75: File date not modified when changing exif date

Post by helmut »

Thank you for your long and detailed post regarding the EXIF data and its dependency to file modified date and your suggestions for possible solutions, CameronD! :)

I'll also think about possible solutions to solve this current contradiction and will reply in the coming days.
Post Reply