Jump to content
You must now use your email address to sign in [click for more info] ×

Recommended Posts

How can I save pictures without change modified date?

A month ago I purchased Affinity photo and started to edit some pictures and saved as XXX.afphot and JPEG as well.

Then I noticed their modifyied date switched a day when I edit.

Let's say a picture taken last Dec25 and edit today as June 13 saved as JPEG then click "Get info" on Mac, and see modified date is the day not Last Dec25.

Please teach me how to fix the problem.

 

thank you 

Link to comment
Share on other sites

I don’t think this is something you can change as it is an operating system function - not something the Affinity software does - which is used for backups and other things.
If you want to keep the old date on the file then you should save a copy of the file instead of overwriting the original.

Link to comment
Share on other sites

5 hours ago, Sudasho said:

Then I noticed their modifyied date switched a day when I edit.

Let's say a picture taken last Dec25 and edit today as June 13 saved as JPEG then click "Get info" on Mac, and see modified date is the day not Last Dec25.

Please teach me how to fix the problem.

From a terminal (Terminal.app or iTerm etc.) you can change a files “date modifiedattribute afterwards this way ...

Quote

touch -mt YYYYMMDDhhmm filename.ext

...and thus...

touch -mt 201912250000 yourfile.jpg

... in order to change both, the “date modified” and “date created” attributes, try instead ...

Quote

touch -t YYYYMMDDhhmm filename.ext

...aka...

touch -t 201912250000 yourfile.jpg

 

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Link to comment
Share on other sites

4 hours ago, Sudasho said:

If you don't mind can you tell me your way to save a picture without update modification date?

Like the creation & last opened dates the modification date is metadata stored in the file system of the Mac. (It is not stored anywhere in the file itself.)

It is possible to change those metadata date-related items using advanced techniques but it is not advisable to do so because it can cause a number of problems with backups, version control, & other OS level things that rely on their correctness to work as they should..

All 3 1.10.8, & all 3 V2.4.2 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

1 hour ago, R C-R said:

It is not stored anywhere in the file itself

EXIF (JPEG file) has this information. Some editing tools (such as ExifTool) can modify these dates, or they can set file dates accordingly.

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

2 hours ago, Pšenda said:

EXIF (JPEG file) has this information. Some editing tools (such as ExifTool) can modify these dates, or they can set file dates accordingly.

True, but the EXIF metadata (optionally) stored in the file itself & the file system metadata stored in the Mac's file system are two different & completely independent things. So changing the date-related EXIF metadata in the file has no effect on the date-related metadata stored in the file system & visa versa.

All 3 1.10.8, & all 3 V2.4.2 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

4 hours ago, Sudasho said:

R C-R Hummm so you do not recommend touch EXIF date for modification or creation date

No! It is the file system metadata that should not be changed. It is perfectly OK to change the EXIF metadata embedded in the file if there is any need for that. In fact, Apple's Photos app provides a way to change some of the EXIF metadata, as do many other apps.

In Finder & 'Get Info' windows, the creation, modification, & other dates you see are file system attributes managed by the macOS. Unlike EXIF metadata, they are not part of the file itself.

All 3 1.10.8, & all 3 V2.4.2 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

35 minutes ago, R C-R said:

No! It is the file system metadata that should not be changed.

That's nonsense, especially the above said, since in the context of programming project related tasks and build processes it's deadly needed and common usage. Since an updated access or modification date can be important for a variety of other programs such as a VCS, backup utilities, or the make command-line interface programming utility. Typically these types of programs are only concerned with files which have been created or modified after the program was last run. So there is a good reason why every Unix and Windows system as default usually comes along with a build-in touch command.

 

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Link to comment
Share on other sites

53 minutes ago, v_kyr said:

That's nonsense, especially the above said, since in the context of programming project related tasks and build processes it's deadly needed and common usage.

Please do not take what I said out of context. I am not talking about programming an app, a CLI utility, or any build-related process. That is not what is being discussed here.

Among other things, it is well known that changing the creation or modified date of user document files can play havoc with Time Machine backups & with clone utilities like SuperDuper!

All 3 1.10.8, & all 3 V2.4.2 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

12 minutes ago, R C-R said:

Please do not take what I said out of context. I am not talking about programming an app, a CLI utility, or any build-related process.

...because it can cause a number of problems with backups, version control, & other OS level things...

All that is part of your above sketched context, namely the common OS level things, aka the timestamps (i.e., dates and times of the most recent access and modification) on existing files and directories in a file system . Creation & update of the date and time attributes of files/dirs on file systems has always been a common task since the early beginnings of Unix systems. - What you name now is solely due to Apple specific idiosyncrasies and only related to TimeMachine (and tools which have to deal with that), where you have to go the Apple specific way then with tmutil.

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Link to comment
Share on other sites

8 hours ago, v_kyr said:

Creation & update of the date and time attributes of files/dirs on file systems has always been a common task since the early beginnings of Unix systems. - What you name now is solely due to Apple specific idiosyncrasies and only related to TimeMachine (and tools which have to deal with that), where you have to go the Apple specific way then with tmutil.

I do not think it serves any useful purpose to comment on the early days of Unix systems here but I must point out that the macOS is not simply a 'pure' Unix OS so we do have to consider its "idiosyncrasies," including for anything related to making manual changes in the file system timestamps.

All 3 1.10.8, & all 3 V2.4.2 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

Those are pretty essentiells of any OS filesystem, aka making possibly manual changes to files time attributes, same as changing access rights etc., thus that's all nothing special here. And macOS behaves overall like a common BSD Unix system here in regard to these things.  Thus all the common Unix filesystem commands should work, especially for any certified Unix system.

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Link to comment
Share on other sites

If I want to change dates on standard image formats like jpeg, png etc… after editing them in AP,  I use 'XnConvert' or 'Photos Exif Editor'. A word of warning though, never use either of these apps to change meta data on images contained in Apple Photo’s ‘Photos Library’. They will mess it up and stop Photos from working properly!
So if it’s an image that’s in Apple Photos who's date you want to change then always use Apple Photos built in ‘Adjust Date & Time’ function.

macOS 10.15.7  15" Macbook Pro, 2017  |  4 Core i7 3.1GHz CPU  |  Radeon Pro 555 2GB GPU + Integrated Intel HD Graphics 630 1.536GB  |  16GB RAM  |  Wacom Intuos4 M

Link to comment
Share on other sites

2 minutes ago, v_kyr said:

Those are pretty essentiells of any OS filesystem, aka making possibly manual changes to files time attributes, same as changing access rights etc., thus that's all nothing special here.

In what situation(s) would you consider it essential to make any manual changes to file system date/time attributes?

When would it be something typical Mac users would need to do, & for what purpose? Same question for changing access rights.

9 minutes ago, v_kyr said:

And macOS behaves overall like a common BSD Unix system here in regard to these things.  Thus all the common Unix filesystem commands should work, especially for any certified Unix system.

While overall that might be true, it does not mean that just because most common UNIX command should work that it is safe to use them without knowing exactly what they do or how they could affect normal system or app operations.

All 3 1.10.8, & all 3 V2.4.2 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

14 minutes ago, R C-R said:

In what situation(s) would you consider it essential to make any manual changes to file system date/time attributes?

Distribute and release versions of a projects stand, update github, Bitbucket etc. repositories with local code, rebuilding stuff with make,  fixing wrong file and directory settings from your cams transfer, the cloud or external drive, ... etc. There are many different workflows where the consideration of files with older timestamps, which are otherwise ignored, are commonly needed.

25 minutes ago, R C-R said:

When would it be something typical Mac users would need to do, & for what purpose? Same question for changing access rights.

Team work, shared access, prevention of overwrite of important things, giving access to groups and other individuals, make scripts executable, setup system services ... and so on. - Also very important if you have to setup and administrate your own local webserver, database, CMS, VCS, VPN ... and certain other services. - Why do you think there do exist serveral user roles and there is a root aka superuser, plain or guest users etc.? - So what would you do if you couldn't do that stuff at all?

 

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.