how to find images without some tag, for example GPS location tags

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

how to find images without some tag, for example GPS location tags

Micha? Smoczyk
Hi,
I was trying with digiKam to check which of my photographs have *NOT
SET* GPS tags (coordinates, altitudes, etc.) embedded in EXIF
metadata. Well, I couldn't find related options in digiKam search
tab. I suppose this kind of search is impossible in digiKam. So,
anyone knows a way to do this via exiftool, exiv2 or some other tool?

I am trying to find metadata 'orphans' in my collection in this way.
Next I'm going to find images without authorship tag set. Cheers,

--
/\/\ichau, admin [monkey] nocnyrzepin [dot] net
http://www.nocnyrzepin.net


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users

signature.asc (204 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: how to find images without some tag, for example GPS location tags

hornpipe2
Save this Perl script in your base directory as "print_no_gps.pl":

#!/usr/bin/perl

if (`exiftool -GPS \"$ARGV[0]\"` eq '')
{
  print "$ARGV[0]\n";
}

and then...

find <dirname> -iname "*.jpg" -exec print_no_gps.pl {} \;

You can change the -GPS to -MakerNotes or whatever later, to get your
second goal : )

-Greg

MichaƂ Smoczyk wrote:

> Hi,
> I was trying with digiKam to check which of my photographs have *NOT
> SET* GPS tags (coordinates, altitudes, etc.) embedded in EXIF
> metadata. Well, I couldn't find related options in digiKam search
> tab. I suppose this kind of search is impossible in digiKam. So,
> anyone knows a way to do this via exiftool, exiv2 or some other tool?
>
> I am trying to find metadata 'orphans' in my collection in this way.
> Next I'm going to find images without authorship tag set. Cheers,
>
>  
> ------------------------------------------------------------------------
>
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
>  

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: how to find images without some tag, for example GPS location tags

Micha? Smoczyk
Greg Kennedy wrote:

> Save this Perl script in your base directory as "print_no_gps.pl":
>
> #!/usr/bin/perl
> if (`exiftool -GPS \"$ARGV[0]\"` eq '')
> {
>   print "$ARGV[0]\n";
> }
>
> and then...
> find <dirname> -iname "*.jpg" -exec print_no_gps.pl {} \;
> You can change the -GPS to -MakerNotes or whatever later, to get your
> second goal : )
Thanks Greg for help.
It works, but I have to change -GPS argument of exiftool to
-GPSLatitude (which is always set in proper geotaged file) and
script call in find command:

#!/usr/bin/perl
if (`exiftool -GPSLatitude \"$ARGV[0]\"` eq '')
{
  print "$ARGV[0]\n";
}

find . -iname "*.jpg" -exec ./print_no_gps.pl {} \;

Thank you once again,

--
/\/\ichau, admin [monkey] nocnyrzepin [dot] net
http://www.nocnyrzepin.net


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users

signature.asc (204 bytes) Download Attachment