Some images do not want to be given DateTimeOriginal Tags when many did get them

Started by Karadas89, December 04, 2024, 01:52:07 AM

Previous topic - Next topic

Karadas89

Following up from this post, I have successfully been able to give my photo's DTO tags in the workspace tab, but there are some photo's that keep trying to fight over it and deny being given a new DTO tag. I even tried this with only one image that had no DateTimeOriginal still and it wants to not work. Like I said last post I am just a beginner to this application so bear with me on this.

Is there any way to fix the command to allow me to write the DTO or would I need to do this manually via typing the date/time down where it has the "large, blank space with "-" and save"?

Current situation with one file.png

the rest of Bulk.png

Bulk.png

one file for example.png

FrankB

Hi Karadas89,

- Gui does not write to the files, it leaves that to ExifTool.
- In 'one file for example.png' I see a 'Minor'. Maybe ExifTool will write to that file if you add '-m'. In Gui you can set that up via 'Options'

ignore_minors.jpg

A few tips, maybe you found out already, in that case ignore:
- You can add a predefined command to ExifTool Direct like this.
Edit: I have left out '-P', but you can set that in the 'Options' also. (Preserve Date modified of files)

predefined.jpg

- You can change the 'User defined' view (or create a duplicate) and add the 'DateTimeOriginal', 'FileModify' .
userdef 1.jpg

userdef 2.jpg


Frank


Karadas89

#2
It worked! Just tried it with all files, 8383 files failed condition but I'm gonna guess those are the ones that did already have DTO's written to then bc 60 did get updated with no fails and adding that up it's all 8,443k files I have on this one folder.

I also saw there's a "preserve date modified of files" option in your screenshot so I may use this incase I need to not overwrite my modifydate's.

I also tried that predefined command option to record commands I know so this will be a lot better than keeping them in a txt file, will need to test which command overwrites what again though to make sure they're correct.

@FrankB thank you and I appreciate the advice and help!

ExifToolGui_X64_IcNhlJVaeg.png

ExifToolGui_X64_Y3OlumCrNL.png


Karadas89

Update: so even with my files having DTO's now, my phone will not auto organize them for me, so I had to use "image & video date fixer" on Android to match the dates back with what I added to the exif metadata, even then there were some  files that didn't read what I added to the metadata so I had to manually fix them, luckily they have the dates on the file name and I have the DTO on my PC to reference.

I got some work ahead of me to make this phone move perfect but I'm better off than b4. I got the premium version of the app on Android 2$ off from some black friday to cyber monday special so whoever is reading this is in the same boat with their dates not being properly organized still you'd be paying 4$ to get the premium version to edit above 50 images.

Note that I had 8,443k images so this was worth it especially for 2$ but I would've shilled 4$ anyways due to the mass amount of stuff I have, had to delete 29 images that weren't as important but It's images I already have on PC so it's all good.

Karadas89

Ok so I'm on the 2nd last half of images I need to move and now I have issues where some files are not even given a chance to be given new DTO's due to the GUI thinking they're JPEG's when they're PNG's even when I originally downloaded them before.

There's also some other examples of errors that still got to me but there's stuff like Kamfer_Doga.png that worked well as well as dupe XMP block created files working too at least.

FrankB

Small correction. It's not GUI that says it's a JPEG, GUI displays only what ExifTool reports.

If ExifTool says it's a JPEG I would believe it. Maybe try renaming them to JPG?

You can set up a file filter in GUI to only show PNG files.
Show all files/Configure

filefilter.jpg

FrankB

Suppose renaming to a diffent extension works, this is how you can do that with ExifTool Direct in GUI.

-filename=%f.jpg
rename.jpg

StarGeek

Quote from: FrankB on December 05, 2024, 04:06:30 AMSuppose renaming to a diffent extension works, this is how you can do that with ExifTool Direct in GUI.

-filename=%f.jpg

I would suggest
-Filename<%f.$FileTypeExtension

This will put the correct extension on any file that has the incorrect one.
"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

StarGeek

Quote from: Karadas89 on December 04, 2024, 07:22:41 PMthe GUI thinking they're JPEG's when they're PNG's even when I originally downloaded them before.

As FrankB says, if exiftool says it looks like a JPEG, then it's almost certainly a JPEG with a PNG extension. You will get a similar error with PNG files that have a .jpg extension.

The files need the correct extension before exiftool will edit them, because otherwise they would be corrupted beyond repair.
"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

Quote from: StarGeek on December 05, 2024, 03:03:15 PMThe files need the correct extension before exiftool will edit them, because otherwise they would be corrupted beyond repair.

ExifTool wouldn't corrupt them, but it won't write them because I won't want people thinking that they were corrupted by ExifTool when other software has a problem with the wrong extension.

- Phil
...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 ($).

FrankB

Quote from: StarGeek on December 05, 2024, 03:00:26 PMI would suggest
-Filename<%f.$FileTypeExtension

This will put the correct extension on any file that has the incorrect one.

Even better. Learning all the time

Karadas89

Quote from: StarGeek on December 05, 2024, 03:00:26 PM
Quote from: FrankB on December 05, 2024, 04:06:30 AMSuppose renaming to a diffent extension works, this is how you can do that with ExifTool Direct in GUI.

-filename=%f.jpg

I would suggest
-Filename<%f.$FileTypeExtension

This will put the correct extension on any file that has the incorrect one.

This worked for me, at 1st since the png's were so little I changed 1 manually but that lost it's quality so that wasn't gonna be the best choice, yet I have issues about GIF's but I checked past forum post and I now know they can't hold exif metadata even if they have DTO's filled in the XMP category.

Even with the app I mentioned they don't wanna be organized to specific dates (but they do organize on where they start and end from said dates on a mass bulk of gifs that is "this month") so I'll live with disorganized gifs. Appreciate these tips and guides y'all!