Main Menu

Recent posts

#71
Newbies / Best CreateDate - Most accurat...
Last post by theprof - November 19, 2024, 05:39:09 PM
exiftool -F -overwrite_original_in_place -api LargeFileSupport \
        -FileOrder DateTimeOriginal -FileOrder CreateDate -FileOrder -FileSize -FileOrder FileModifyDate \
        -api QuickTimeUTC \
        -d "%Y-%m-%d %H-%M-%S %%.2nc.%%le" \
        '-AllDates<FileModifyDate#' \
        '-AllDates<${DateTimeOriginal#;$_ = undef if $_ lt "1971"}' \
        '-AllDates<${CreateDate#;$_ = undef if $_ lt "1971"}' \
        '-FileName<FileModifyDate' \
        '-FileName<${DateTimeOriginal;$_ = undef if $_ lt "1971"}' \
        '-FileName<${CreateDate;$_ = undef if $_ lt "1971"}' \
        -r "$dir_path"

I was using the command above to get the file names and dates "synchronized" so that it gets the "best" create date so that there is only 1 source of truth for the create date. Unfortunately, some of the files got renamed where it used the File System Modification date when it could've used something better. I found out the original files had a "ModifyDate" that could've been used.

Given the unknowns of all metadata issues, what is the best most accurate way to get the Create Date?

#72
Newbies / Re: I can't delete the Slices ...
Last post by StarGeek - November 19, 2024, 01:31:10 PM
The image data of the JPEG will not be touched.

In regard to the resolution tags, you would have to test it. There's no way to guarantee that whatever program is used to print the file will read a specific set of resolution tags or not.
#73
Metadata / Re: Question about wrong dates...
Last post by StarGeek - November 19, 2024, 01:25:15 PM
That would be reasonable as long as you understand the underlying properties of the date/time tags.

Most of the time stamps in a video are supposed to be set to UTC. Windows understands this and adjusts the displayed values accordingly. But if you look at the files in a time zone other than the one where it was taken, for example, viewing the data on a computer on the West Coast -08:00 time zone, Windows would display the time for that time zone, three hours earlier than what was displayed in an East Coast time zone.

But not all of the video time stamps are UTC. Specifically, the Quicktime:DateTimeOriginal and Quicktime:CreationDate (different from the Quicktime:CreateDate are supposed to be the local time zone where the video was taken.

Try this command
exiftool -GlobalTimeShift 5 -TagsFromFile @ -Quicktime:CreateDate -Quicktime:ModifyDate "-Track*Date" "-Media*Date" /path/to/files/

#74
Developers / Switches staying active using ...
Last post by greybeard - November 19, 2024, 12:39:50 PM
I'm not sure if this is a bug or just something to be aware of when using stay_open.

It appears that some switches (not sure how many) keep active across multiple commands when using stay_open.

Here is an example - the following three separate commands are run while exiftool remains open:

-htmlDump <filename>

-a -G1 -u <filename>

-htmlDump <filename>

The output from the second htmlDump is different from the first - the unknown tags are formatted differently.
#75
Newbies / Re: I can't delete the Slices ...
Last post by ozz - November 19, 2024, 12:04:49 PM
Quote from: StarGeek on November 19, 2024, 10:09:38 AMI you check on the Photoshop tags page, you will see that the SlicesGroupName isn't writable. The only way to remove it is to remove the whole Photoshop block.

exiftool -Photoshop:all= file.jpg

Edit: I just got an IFTTT alert for your question on Reddit. The /r/Exiftool subreddit has only 7 people subscribed and only 5 questions (3 with no comments) in the year since it was created. I wouldn't call it a functional subreddit.

Thank you for your answer.

I will be using these JPEGs for commercial purposes. Is there any risk of damaging the JPEG or its printing process if I completely remove the Photoshop section?

Here is an example of a JPEG's metadata.



I think the X-Y resolutions section is important, but they are already included in the EXIF section, right? So, I assume nothing will happen if the ones in Photoshop are deleted.
#76
Metadata / Question about wrong dates
Last post by wlire - November 19, 2024, 11:27:52 AM
I have a GoPro hero 8 and hero 10 which record times in local EST time, but this means that in windows it shows up as 5 hours behind. This issue is not present on GoPro 11 and newer. Is the recommended course of action to just shift all the time tags forward by 5 hours for the GoPro 8 and 10?
#77
Newbies / Re: I can't delete the Slices ...
Last post by StarGeek - November 19, 2024, 10:09:38 AM
I you check on the Photoshop tags page, you will see that the SlicesGroupName isn't writable. The only way to remove it is to remove the whole Photoshop block.

exiftool -Photoshop:all= file.jpg

Edit: I just got an IFTTT alert for your question on Reddit. The /r/Exiftool subreddit has only 7 people subscribed and only 5 questions (3 with no comments) in the year since it was created. I wouldn't call it a functional subreddit.
#78
The "exiftool" Application / Re: Error when writing Label ...
Last post by lokatz - November 19, 2024, 04:41:27 AM
When I saw this, the first thing I did was checking my code for an erroneous extra '=' but could not find any.

Checking the args file (which gets deleted when I end my program, so I'll need to set a breakpoint for that) is a good idea that didn't occur to me yet, so thanks for that. It usually gets rather large, so let me weed through it and see whether I can find anything.
#79
Newbies / Re: I can't delete the Slices ...
Last post by greybeard - November 19, 2024, 03:26:39 AM
Can you share the exact command you are using?

If you run the command : exiftool -PhotoShop:SlicesGroupName <filename>
can you show the output?
#80
Newbies / I can't delete the Slices Grou...
Last post by ozz - November 19, 2024, 03:20:10 AM
When I try to edit or delete the Slices Group Name under the Photoshop section in JPEG metadata, I encounter the message:
"Warning: Sorry, Photoshop doesn't exist or isn't writable.
Nothing to do."
What should I do?