Encuentra todas las fotos con coordenadas GPS en los metadatos


Puedes crear un archivo bash para encontrar todas las imágenes en una carpeta con algunas coordenadas GPS:

[moore@mux imagefolder]$ cat ./check_files_with_gps_exif.sh 
#!/bin/bash

find_gps_coordinate () {
  file_to_work_on=$1
  exif_data="$(exiftool $file_to_work_on)"
  if grep -q GPS <<< $exif_data
    then echo "### $file_to_work_on contains at least one occurrence of GPS exif data"
    echo "$exif_data" | grep GPS
  fi
}
export -f find_gps_coordinate

find . -type f \( -name "*.jpg" -o -name "*.png" -o -name "*.webp" \) -exec bash -c "find_gps_coordinate {}" \;

Podemos ejecutar este script y encontrar todas las imágenes con la extensión jpg, png o webp con metadatos exif de GPS:

[moore@mux imagefolder]$ ./check_files_with_gps_exif.sh 
### ./200/76a300f8bb.jpg contains at least one occurrence of GPS exif data
GPS Latitude Ref                : North
GPS Longitude Ref               : West
GPS Altitude Ref                : Above Sea Level
GPS Speed Ref                   : km/h
GPS Speed                       : 0.6600000262
GPS Img Direction Ref           : True North
GPS Img Direction               : 103.7740469
GPS Dest Bearing Ref            : True North
GPS Dest Bearing                : 103.7740469
GPS Horizontal Positioning Error: 5 m
GPS Altitude                    : 1.3 m Above Sea Level
GPS Latitude                    : 46 deg 16' 51.80" N
GPS Longitude                   : 2 deg 22' 32.08" W
GPS Position                    : 46 deg 16' 51.80" N, 2 deg 22' 32.08" W


A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

EN | FR | ES

Búsqueda