Main Menu

Recent posts

#91
Bug Reports / Feature Requests / Re: Feature Request: Geolocati...
Last post by StarGeek - November 18, 2024, 09:39:48 AM
Phil is currently away for a couple of weeks, so there will be some time before you get a response on this.

See this post for instructions on how to get an email notification when there's an update.
#92
The "exiftool" Application / Error when writing Label to s...
Last post by lokatz - November 18, 2024, 07:19:21 AM
My application at one point uses

-tagsfromfile [RAW filename] [XMP filename] -overwrite_original
to create an XMP sidecar, in this case from a Sony .ARW image file.  The original image contains a Rating entry, which is written to XMP correctly, but no Label entry.  To my surprise, the sidecar file ExifTool created contains this line:

  <xmp:Label>=</xmp:Label>
I would have expected no Label entry, or an empty one, being created, but not one with the '=' character.  What am I overlooking?

#93
Newbies / Re: Changing Date Fields - Err...
Last post by greybeard - November 18, 2024, 06:53:17 AM
Thats not a minus sign in front of the FileCreateDate tag - try retyping it

exiftool –FileCreateDate="9/10/2024 10:24:00" "C:\Users\myname\OneDrive\Pictures\Working\ExifTool\20241116 075433_My File.jpg"
#94
Newbies / Changing Date Fields - Error: ...
Last post by mjax295 - November 18, 2024, 05:37:37 AM
Newbie.  Had been successfully using Exiftool for a few years.  Had an excel template of basic code that had been working fine earlier.  I could quickly copy a file or directory link into an input cell and it would build my top 10 lines of code I needed for manipulating various metadata fields.  It had been working without issue up until the point I took a couple year break.  Been back in to Exifttool for about a month and a dead stop on changing any date field.

Running Windows 11 Home version 23H2
EXIFTool version:  12.98
I did have a laptop change during the break.

No problem running the below in cmd prompt to display filecreatedate:
exiftool -a -G1 -FileCreateDate "C:\Users\myname\OneDrive\Pictures\Working\ExifTool\20241116 075433_My File.jpg"

I am also able to manipulate "text based" fields with no problem.  Such as change Headline.
exiftool -Headline="Test" "C:\Users\myname\OneDrive\Pictures\Working\ExifTool\20241116 075433_My File.jpg"

And then confirm headline updated:
exiftool -G1 -Headline "C:\Users\myname\OneDrive\Pictures\Working\ExifTool\20241116 075433_My File.jpg"

I can time shift filecreatedate
exiftool -FileCreateDate+="0:0:0 1:0:0" "C:\Users\myname\OneDrive\Pictures\Working\ExifTool\20241116 075433_My File.jpg"

But if I attempt to change FileCreateDate:
exiftool –FileCreateDate="9/10/2024 10:24:00" "C:\Users\myname\OneDrive\Pictures\Working\ExifTool\20241116 075433_My File.jpg"

I get:
Error: File not found - ûFileCreateDate=9/10/2024 10:24:00
I have also tried:
exiftool -api QuickTimeUTC –FileCreateDate="9/10/2024 10:24:00-5.00" "C:\Users\myname\OneDrive\Pictures\Working\ExifTool\20241116 075433_My File.jpg"
Suspecting I must have a formatting issue on the time.
Same result:
Error: File not found - ûFileCreateDate=9/10/2024 10:24:00-5.00

This applies to any date field.

Thanks for any help.
#95
Bug Reports / Feature Requests / Feature Request: Geolocation u...
Last post by ThankYou - November 18, 2024, 03:35:30 AM
Is it possible to build the geolocation database using the Postal Code dataset from GeoNames?

I have been using the geolocation feature of exiftool which is awesome. The issue I've encountered is inconsitencies in the source data from the full GeoNames dataset. I noticed that geonames also provides a Postal Code database which is a simpler but more consistent, and I think some users including myself may prefer that to the larger dataset.

https://download.geonames.org/export/zip/
#96
Bug Reports / Feature Requests / Re: HEIC face and "regionname"...
Last post by ratounade - November 17, 2024, 03:19:08 PM
I confirm that it works with Digikam 8.5.0, so definitely it was not related to exitool thanks
#97
Newbies / Re: Reformatting jpg metadata ...
Last post by vilkoski - November 17, 2024, 11:37:23 AM
Ok - thanks a lot StarGeek for giving such a detailed explanation/answer.

I will give this a try and see if I need some more tweaking before starting to process my full archive.
#98
The "exiftool" Application / Re: Batch Processing of many m...
Last post by StarGeek - November 17, 2024, 10:09:03 AM
I would suggest reformatting the data into a CSV file. The result should look like this
SourceFile,AllDates
/mnt/user/media/Photos/Immich/library/dupes/2013/20130317_142716.IMG_0018.jpg,2013:03:17 18:27:16
/mnt/user/media/Photos/Immich/library/dupes/2015/20151111_122348.012c8fcb632fc2ae910b3f9f85bdbc8b324ac8779d.jpg,2013:03:17 18:27:16

And then you could use this command with the -csv option
exiftool -r -csv=file.csv /mnt/user/media/Photos/Immich/library/dupes

You don't mention your OS, but if you are on Mac/Linux, you could use sed to reformat the data. ChatGPT gave me this command, which should be tested to make sure ChatGPT wasn't drunk when writing it
sed 's|^\.\/exiftool -AllDates="\(.*\)" "\(.*\)"|\2,\1|' commands.txt >file.csv

If you're on Windows, you can get sed (and other useful Linux commands) from MSys2. Otherwise you would have to work up a script of some sort.
#99
Newbies / Re: characters question
Last post by Iwonder - November 17, 2024, 05:41:00 AM
@StarGeek
Hello friend !

Thanks ! activating the UTF-8 code page, makes it work like a charm !
Thank you, you are essential here !!!!

By default (Windows 10) .txt are saved as ANSI files. Before asking, I tried to save my batch file as a UTF-8 file, but this, all alone didn't work :)
See you !
Bernard

extra keywords for this post : accentuated, accents, non-english characters, French language
#100
The "exiftool" Application / Batch Processing of many manua...
Last post by dRuEFFECT - November 17, 2024, 04:56:34 AM
I have a large catalog of photos that contain duplicates, many of which have different dates. Ultimately I want to dedupe photos and have the remaining photos to have the earliest date value from within the set of duplicates. I'm using Immich to identify duplicates and query the Immich API to give me duplicateId, filename, and dates. I take the least value of all dates related to an image, and then min value of this across all photos within the set of duplicates based on duplicateId.

I now want to take these externally calculated date values and bulk update the images using exiftool, and afterwards will proceed with removing duplicates within Immich.

I can run a series of updates like below, but for thousands of items this performs poorly as per  Common Mistake #3.

./exiftool -AllDates="2013:03:17 18:27:16" "/mnt/user/media/Photos/Immich/library/dupes/2013/20130317_142716.IMG_0018.jpg"
./exiftool -AllDates="2013:03:17 18:27:16" "/mnt/user/media/Photos/Immich/library/dupes/2015/20151111_122348.012c8fcb632fc2ae910b3f9f85bdbc8b324ac8779d.jpg"
./exiftool -AllDates="2013:05:17 18:25:19" "/mnt/user/media/Photos/Immich/library/dupes/2013/20130517_142519.2013-05-17 14.25.19.jpg"
./exiftool -AllDates="2013:05:17 18:25:19" "/mnt/user/media/Photos/Immich/library/dupes/2013/20130517_142519.IMG_0236.jpg"
./exiftool -AllDates="2013:05:17 18:25:19" "/mnt/user/media/Photos/Immich/library/dupes/2013/20130517_142519.IMG_1193+1.JPG"
./exiftool -AllDates="2013:05:17 18:25:19" "/mnt/user/media/Photos/Immich/library/dupes/2013/20130517_142519.011efbe82ea3f14bd43d76eb3d28cb2a746afdd5bb.jpg"
./exiftool -AllDates="2015:10:08 23:02:36" "/mnt/user/media/Photos/Immich/library/dupes/2015/20151008_190236.IMG_7384.JPG"
./exiftool -AllDates="2015:10:08 23:02:36" "/mnt/user/media/Photos/Immich/library/dupes/2015/20151009_020816.IMG_7386.JPG"
./exiftool -AllDates="2013:01:28 00:28:06" "/mnt/user/media/Photos/Immich/library/dupes/2013/20130127_192806.01bbaaca6009efdc5db9667a09460791d081ef5f0d.jpg"
./exiftool -AllDates="2013:01:28 00:28:06" "/mnt/user/media/Photos/Immich/library/dupes/2013/20130127_192806.IMG_0170.jpg"
./exiftool -AllDates="2012:11:10 06:27:29" "/mnt/user/media/Photos/Immich/library/dupes/2012/20121110_012729.IMG_0062.jpg"
./exiftool -AllDates="2012:11:10 06:27:29" "/mnt/user/media/Photos/Immich/library/dupes/2012/20121110_012729.IMG_0083.jpg"
./exiftool -AllDates="2012:11:10 06:27:29" "/mnt/user/media/Photos/Immich/library/dupes/2012/20121110_012729.0113dd40393ad07556bb7349eef5d60a7601495893.jpg"
./exiftool -AllDates="2014:01:01 06:16:34" "/mnt/user/media/Photos/Immich/library/dupes/2014/20140101_011634.01ee3fe0587b77578d951963118f8e2a58f8b7b52e.jpg"
./exiftool -AllDates="2014:01:01 06:16:34" "/mnt/user/media/Photos/Immich/library/dupes/2014/20140101_011634.IMG_0311.jpg"
./exiftool -AllDates="2013:09:12 00:24:07" "/mnt/user/media/Photos/Immich/library/dupes/2013/20130911_202407.IMG_3085.JPG"

So question is, how can I pass these filename and datetime values in from a file into a single exiftool command?