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

Batch process - retain original file date


Recommended Posts

Hi,

I'm finally preparing to move away from Aperture, which I still use for its DAM, which remains by far the best, as far as I can see.  Sigh.  I have several thousand old tiff files, that are unsupported in 64bit (you can test this by starting up in 64bit mode on you Mac).  Happily, whilst AFP 1.6.7 choked and crashed horribly trying to batch convert these old .tif files to modern versions, via New Batch Job, AFP 1.7beta cruises through them with much appreciated speed and solidity.  So far I have made a >2,000 batch conversion.

Problem/Question:

Obviously the Batch Job is producing a new Tiff LZW file, which has a new date.  Is there any way within AFP that I can set the date to the same as the original file (I can't find anything) or does anyone have any suggestions how I can keep the original file date?  I suppose it could be done in the Finder via Applescript, but this is beyond my capabilities.  Seems like this is something that could be desirable for quite a few people.

Grumpy, but faithful (watch out all you cats)

Link to comment
Share on other sites

There are a bunch of Unix operating system CLI tools (command line interface) which do deal with file attribute or file date/time changing etc, you can use these from inside a terminal, or use some GUI frontend tools to those...

 

☛ 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

Thank you for the reply.

These don't address the issue though.  The question is not how to change a file's date, it is how to retain the date of the original file when batch converting (the exif date ... not the Finder date).

Grumpy, but faithful (watch out all you cats)

Link to comment
Share on other sites

Well you didn't explicitely talked about the Exif date in your initial post.  However you can try Exiftool for inspection (it's also part of APh release versions) and such Exif data related purposes, there are also some GUI tools for that one like pyExifToolGUI etc.

☛ 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

Thanks again and I should have been more specific about which date, but those still don't answer the question.  FWIW and not relevant for much longer, Aperture can batch change EXIF date.  So I already have this ability.

The question is how to batch convert (or retain in AFP when using Batch Job) the original file date, so that the new file's date matches the old (original) file's date.  I have many thousands of these images, so doing them one-by-one would be time consuming.

Grumpy, but faithful (watch out all you cats)

Link to comment
Share on other sites

If it alters these and doesn't retain the original ones during batch processing (...didn't tried out, since I don't use it for such photo image tasks at all), I doubt you can setup/customize a different APh behavior here then. You would have to use some other tools for batch processing which do keep the orig Exif date settings.

☛ 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

On Windows, Affinity Photo (1.6 or 1.7) Batch Processing preserves the original EXIF information about when the photo was shot.

One possibility: Click the "..." button in the New Batch Job dialog and make sure that "Embed Metadata" is enabled.

If it is enabled, and the EXIF "Date Shot" information is not maintained, you may have found a Photo bug on Mac.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

32 minutes ago, walt.farrell said:

If it is enabled, and the EXIF "Date Shot" information is not maintained, you may have found a Photo bug on Mac.

I did not have any TIFF file samples with embedded EXIF data to test with but I have a bunch of JPEG files output from an iPhone 5S that do. So I batch converted a group of them to TIFF in Affinity Photo, & then back again to JPEGs & to Affinity native files as well.

Not definitive I know, but in no case was any of the embedded EXIF data altered.

All 3 1.10.8, & all 3 V2.4.1 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

Thanks for the replies.

As you said Walt and R C-R,  AFP is respecting the metadata, which is great and my problem was coming from the way that Aperture handles files which are lacking a metadata date.  In fact, what it does is it displays the Finder date in the exif date field, but if these files are exported *as originals*, that date is not included, presumably because it is not a part of the original file.  So that is as it should be.  If you export as a version, then the date is applied, which equally, makes sense.  On top of this, it turns out that it's trivial to set the date permanently in the originals, within Aperture.  So my problems is solved without any headache ... just a lot of fiddling, checking, searching etc.  Also good to see that AFP is handling batch conversion in a useful way.

Grumpy, but faithful (watch out all you cats)

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.