exiftool "-DateTimeOriginal>FileCreateDate" does'nt work

Started by Kuno, November 23, 2023, 05:24:57 PM

Previous topic - Next topic

Kuno

Hello everyone,

I'm new here and have a problem with the file date in Linux.
Some jpg files have an incorrect creation date in the attributes.
The creation date is correct in the Exif header.
I now want to write the Exif creation date into the file creation date.

I get the following error message:

exiftool "-DateTimeOriginal>FileCreateDate" IMG_1717.jpg
Warning: This tag is Windows/Mac only in File:FileCreateDate (ValueConvInv) - IMG_1717.jpg
Warning: No writable tags set from IMG_1717.jpg
    0 image files updated
    1 image files unchanged

Can someone help me solve the problem?
Many thanks.

Greetings, Kuno

StarGeek

Like the error says, there isn't a FileCreateDate on Linux, just Mac & Windows.

What are you using that says there is a file system create date?

Run this command on the file to see all the date/time tags.  See if one of those matches the time your other program is showing and try copying to that.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Phil Harvey

...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Kuno


Thanks for yours feedback.

The problem is in fact that you can't seem to change the 'creation date' of the files under Linux. The change date, however, does, as Phil points out.

If you copy an old file under Linux, it receives a new 'creation date' in the file system.
My problem was displaying JPG files sorted under a Linux file manager.
An ancient file appeared as brand new after copying.

So now I have to sort by modification date and completely ignore the creation date because it doesn't have any reliable information.

Thank you for your help.

Greetings,
Kuno

StarGeek

Ooops, when I said this
QuoteRun this command on the file to see all the date/time tags.  See if one of those matches the time your other program is showing and try copying to that.

I forgot to include the command.

Run this command and see if you can find the matching date
exiftool -time:all -G1 -a -s file.jpg
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

wywh

On the Mac I have to add '-api RequestAll=2' or '-FileCreateDate' to see the file creation date.

exiftool -a -G1 -s -Time:All -api RequestAll=2 image.jpg

- Matti

StarGeek

"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Kuno

Quote from: StarGeek on November 24, 2023, 11:14:00 AMOoops, when I said this
QuoteRun this command on the file to see all the date/time tags.  See if one of those matches the time your other program is showing and try copying to that.

I forgot to include the command.

Run this command and see if you can find the matching date
exiftool -time:all -G1 -a -s file.jpg

Hi StarGeek,

Thanks for your answer.
But it is not the problem to find an matching date.
I wish to set the Exif creation date to the system creation date, what the file manager use...
But this is may be not possible...

My new work around is to use the modify date for sorting my jpgs...

Greetings,
Kuno

StarGeek

Quote from: Kuno on November 24, 2023, 06:29:09 PMBut it is not the problem to find an matching date.
I wish to set the Exif creation date to the system creation date, what the file manager use...
But this is may be not possible...

Use that command and try to match what you are seeing as the system creation date to the tag name.  As it has been pointed out, there isn't a file system create date on Linux, so your file manager is looking at something else.  The point is to figure out what data your file manager is looking at.

Try adding the -api RequestAll=2 (or maybe make it a 3 instead of a 2) just in case there is something else that isn't listed by default.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype