[Digikam-users] how to find images without some tag, for example GPS location tags

MichaƂ Smoczyk admin at nocnyrzepin.net
Sat Jan 9 10:51:11 GMT 2010


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20100109/b670faa5/attachment.sig>


More information about the Digikam-users mailing list