Thanks for an great tool - seems incredibly powerful and the only tool I've found that can reliably write IPTC data to an image.
I'm trying to convert my Windows XP/Access 2000 photo library to macOS Monteray/Digikam.
I'm trying to write some code that creates a csv file for each folder containing the images and keywords to be loaded, then use Exiftool to write them into the images. (I know you have a recursive option but I want the chance to 'clean up' folder by folder.)
This command works:
Z:\DATA\KEYWORD_COPY>exiftool -csv=1980/LoadKeywords.csv -sep ", " -overwrite_original 2010/Malta
This command does not:
Z:\DATA\KEYWORD_COPY>exiftool -csv=1980/LoadKeywords.csv -sep ", " -overwrite_original _Pre_1980/Marion_old_pics
it generates a 'no source file' error for every file and shows a full path that looks correct to me.
Any suggestions? Looks like it doesn't like '_'
Cheers
Phil
Can you list the exact error and the exact line that should match that file in the csv file?
The "no source file" indicates that for whatever reason, exiftool is finding files that it is unable to match to a filepath in the "SourceFile" column.
Edit: Just to test that the underscore shouldn't be the problem, I ran this sequence
Y:\!temp\ddd>type test.csv
SourceFile,Description
_Pre_1980/Marion_old_pics/Test1.jpg,description 1
_Pre_1980/Marion_old_pics/Test2.jpg,description 2
_Pre_1980/Marion_old_pics/Test3.jpg,description 3
Y:\!temp\ddd>exiftool -P -overwrite_original -csv=test.csv _Pre_1980\Marion_old_pics
1 directories scanned
3 image files updated
Y:\!temp\ddd>exiftool -G -a -s -description _Pre_1980\Marion_old_pics
======== _Pre_1980/Marion_old_pics/Test1.jpg
[XMP] Description : description 1
======== _Pre_1980/Marion_old_pics/Test2.jpg
[XMP] Description : description 2
======== _Pre_1980/Marion_old_pics/Test3.jpg
[XMP] Description : description 3
1 directories scanned
3 image files read
Thanks for getting back to me so quick.
Here's the first few error lines:
Z:\DATA\KEYWORD_COPY>exiftool -csv=1980/LoadKeywords.csv -sep ", " -overwrite_or
iginal _Pre_1980/Marion_old_pics
No SourceFile '_Pre_1980/Marion_old_pics/Alice.jpg' in imported CSV database
(full path: 'z:/data/keyword_copy/_pre_1980/marion_old_pics/alice.jpg')
No SourceFile '_Pre_1980/Marion_old_pics/Horace.jpg' in imported CSV database
(full path: 'z:/data/keyword_copy/_pre_1980/marion_old_pics/horace.jpg')
No SourceFile '_Pre_1980/Marion_old_pics/chlowe.jpg' in imported CSV database
(full path: 'z:/data/keyword_copy/_pre_1980/marion_old_pics/chlowe.jpg')
No SourceFile '_Pre_1980/Marion_old_pics/Nans wedding framed.PNG' in imported CS
V database
(full path: 'z:/data/keyword_copy/_pre_1980/marion_old_pics/nans wedding framed.
png')
........
No SourceFile '_Pre_1980/Marion_old_pics/bminnie.jpg' in imported CSV database
(full path: 'z:/data/keyword_copy/_pre_1980/marion_old_pics/bminnie.jpg')
1 directories scanned
0 image files read
(There is an error for every one of the files below; which is a complete list of the files in the folder.)
The csv file is:
SourceFile,Keywords
_Pre1980\Marion_old_pics\1911.jpg,"Test, UK"
_Pre1980\Marion_old_pics\Albert and Marys marriage cert.jpg,"Test, UK"
_Pre1980\Marion_old_pics\Alice.jpg,"Test, UK"
_Pre1980\Marion_old_pics\bminnie.jpg,"Test, UK"
_Pre1980\Marion_old_pics\chlowe.jpg,"Test, UK"
_Pre1980\Marion_old_pics\Christo[pher Etherton.jpg,"Test, UK"
_Pre1980\Marion_old_pics\Colin's Wedding.bmp,"Test, UK"
_Pre1980\Marion_old_pics\family bates.jpg,"Test, UK"
_Pre1980\Marion_old_pics\family2.jpg,"Test, UK"
_Pre1980\Marion_old_pics\grandad 16- 17.jpg,"Test, UK"
_Pre1980\Marion_old_pics\grandad rocking horse.jpg,"Test, UK"
_Pre1980\Marion_old_pics\harvey.jpg,"Test, UK"
_Pre1980\Marion_old_pics\Henry Etherton and sarah botting.jpg,"Test, UK"
_Pre1980\Marion_old_pics\Henry Etherton.jpg,"Test, UK"
_Pre1980\Marion_old_pics\henry.jpg,"Test, UK"
_Pre1980\Marion_old_pics\Horace.jpg,"Test, UK"
_Pre1980\Marion_old_pics\Mary Ann.jpg,"Test, UK"
_Pre1980\Marion_old_pics\mum and dad.jpg,"Test, UK"
_Pre1980\Marion_old_pics\Nans wedding framed.PNG,"Test, UK"
_Pre1980\Marion_old_pics\TeresaBaby.jpg,"Test, UK"
_Pre1980\Marion_old_pics\TeresaBaby.tif,"Test, UK"
_Pre1980\Marion_old_pics\Thornton.jpg,"Test, UK"
Not a problem but I note the files are processed in a different order to the csv file.
The environment is Windows XP; code written with Access 2000. (Running under VMware on macOS Mohave if that's relevant.)
Cheers
Phil
The paths do not match. The path for Alice.jpg is
z:/data/keyword_copy/_pre_1980/marion_old_pics/alice.jpgbut in the csv file
_Pre1980\Marion_old_pics\Alice.jpg
It's _pre_1980 vs _Pre1980
doh! a typo in creating my test area.
Many thanks!!