ExifTool Forum

ExifTool => Newbies => Topic started by: Newsky on August 08, 2017, 05:54:23 AM

Title: Text list based on -XMP-x:XMPToolkit
Post by: Newsky on August 08, 2017, 05:54:23 AM
Is it possible to implement the following:
Get a list (a text file or several text files) with file names and paths up to them, compiled from the value of the -XMP-x:XMPToolkit? Folder with subfolders.
For example:
Image :: ExifTool 10.60 - exiftool.txt
Adobe XMP Core - adobe.txt
And within these files list of files with paths to photos that have certain values -XMP-x:XMPToolkit
Title: Re: Text list based on -XMP-x:XMPToolkit
Post by: Phil Harvey on August 08, 2017, 07:20:26 AM
Quote from: Newsky on August 08, 2017, 05:54:23 AM
Is it possible to implement the following:
Get a list (a text file or several text files) with file names and paths up to them, compiled from the value of the -XMP-x:XMPToolkit? Folder with subfolders.
For example:
Image :: ExifTool 10.60 - exiftool.txt
Adobe XMP Core - adobe.txt

Sure.

exiftool -p "$xmptoolkit - $filename" -r DIR

QuoteAnd within these files list of files with paths to photos that have certain values -XMP-x:XMPToolkit

Something like this?:

exiftool -p "$xmptoolkit - $filename - $directory" -r -if "$xmptoolkit =~ /^ExifTool/" DIR

- Phil
Title: Re: Text list based on -XMP-x:XMPToolkit
Post by: Newsky on August 09, 2017, 01:45:30 PM
Apparently, I'm doing something wrong. No list appears
(http://s018.radikal.ru/i516/1708/53/dbff4edc97a5.png) (http://radikal.ru)
Title: Re: Text list based on -XMP-x:XMPToolkit
Post by: Hayo Baan on August 09, 2017, 02:12:01 PM
What is the value of the xmptoolkit tag? My guess is it doesn't match the regular expression ^ExifTool.
Title: Re: Text list based on -XMP-x:XMPToolkit
Post by: Newsky on August 09, 2017, 02:31:19 PM
(http://s02.radikal.ru/i175/1708/93/2f71aa6cb9b5.png) (http://radikal.ru)

(http://s019.radikal.ru/i610/1708/d1/a1c14f8d0114.png) (http://radikal.ru)

But I want to get a list (or separate lists), depending on the value of the field XMPToolkit
Title: Re: Text list based on -XMP-x:XMPToolkit
Post by: Hayo Baan on August 09, 2017, 04:31:20 PM
That's easy. For the first ones, use ExifTool instead of ^ExifTool in the command Phil gave you, for the second, use Adobe.

That should do the trick.
Title: Re: Text list based on -XMP-x:XMPToolkit
Post by: Newsky on August 10, 2017, 03:34:07 AM
Phil, Hayo Baan, thank you very much for your help!
It worked, but it's not exactly what I need ...
(http://s16.radikal.ru/i191/1708/38/9eafa71e59e0.png) (http://radikal.ru)

I'm very ashamed that I do not know English, so it's hard for me to explain what I really want to do. But I will try.

There are a number of photos that are inside the folders, some have the value Image :: ExifTool 10.60, some Adobe XMP Core 5.6-c128 79.159124, 2016/03/18-14:01:55, and maybe others. I want to specify a folder and on the output receive a text file in which there will be a list of photos with full paths.
Roughly the following:

Image :: ExifTool 10.60:
D:\photo\Mobile\Camera\2017\08\2017-08-03 11-53-56.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-03 11-54-00.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-03 11-54-29.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-04 15-25-25.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-04 15-25-33.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-04 22-45-59.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-04 22-59-35.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-05 16-09-43.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-05 16-10-13.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-05 16-32-17.jpg

Adobe XMP Core 5.6-c128 79.159124, 2016/03/18-14:01:55:
D:\photo\Mobile\Camera\2017\08\2017-08-03 11-53-56.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-03 11-54-00.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-03 11-54-29.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-04 15-25-25.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-04 15-25-33.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-04 22-45-59.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-04 22-59-35.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-05 16-09-43.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-05 16-10-13.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-05 16-32-17.jpg


Or, get a few text files (preferably) inside which will be the same pictures with full paths. In one text file only photos with data Image :: ExifTool 10.60, in the second only with data Adobe XMP Core 5.6-c128 79.159124, 2016/03/18-14:01:55 and so on.

All I need is to find out what photos I have processed in ExifTool, but for some reason they are not saved in Lightroom and Lightroom does not report that these photos are "changed by a third-party program." Plus to this, Geosetter, displays photos that are processed by ExifTool in this way:
(http://s41.radikal.ru/i091/1708/10/0e2e3e34ad63t.jpg) (http://radikal.ru/big/ugsjcfxbzldey)
Title: Re: Text list based on -XMP-x:XMPToolkit
Post by: Phil Harvey on August 10, 2017, 07:15:58 AM
Quote from: Newsky on August 10, 2017, 03:34:07 AM
I want to specify a folder and on the output receive a text file in which there will be a list of photos with full paths.

You can do this, but you need to run a separate command for each XMPToolkit:

exiftool -p "$directory/$filename" -r -if "$xmptoolkit =~ /ExifTool/" DIR > exiftool_files.txt

QuotePlus to this, Geosetter, displays photos that are processed by ExifTool in this way:

Did you ask the Geosetter author (Friedemann Schmidt) about this?  He should be able to fix it.  I have not been able to reproduce this problem. (https://exiftool.org/forum/index.php/topic,4361.msg41509.html#msg41509)

- Phil
Title: Re: Text list based on -XMP-x:XMPToolkit
Post by: Newsky on August 10, 2017, 08:15:15 AM
Already something is happening! But the file is unfortunately empty

(http://s018.radikal.ru/i523/1708/3d/c6d917c89538t.jpg) (http://radikal.ru/big/x8z0d4y71dr7f)

Title: Re: Text list based on -XMP-x:XMPToolkit
Post by: Phil Harvey on August 10, 2017, 09:32:19 AM
It looks like you ran this command:

exiftool -p "$ directory / $ filename" -r -if "$ xmptoolkit =~ / ExifTool /" d:\photo\Mobile\Camera> exiftool_files.txt

But you should have done this:

exiftool -p "$directory/$filename" -r -if "$xmptoolkit =~ /ExifTool/" d:\photo\Mobile\Camera> exiftool_files.txt

- Phil
Title: Re: Text list based on -XMP-x:XMPToolkit
Post by: Newsky on August 11, 2017, 06:28:46 AM
Again and again, Big, thank you very much, Phil! Everything works perfectly!