getimgmeta.sh 1.41 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
#!/bin/bash
# @summary:: Read meta information in JPEG images
# @since: 2019-02-01
# @author: Halley Pacheco de Oliveira
IFS=$'\n'
for f in $(find . -name '*.jpg' -or -name '*.JPG'); do
    exiftool \
        -FileName \
        -CreateDate \
        -ModifyDate \
        -DerivedFrom \
        -MIMEType \
        -Creator \
        -Source \
        -Copyright \
        -Title \
        -Description \
        -Subject \
        -Event \
        -Person \
        -Country \
        -State \
        -City \
        -Location \
        -Notes \
        -Software \
        -ExifImageWidth \
        -ExifImageHeight \
        -Orientation \
        -XResolution \
        -YResolution \
        -ResolutionUnit \
        -ColorSpace \
        -Quality \
        -MeteringMode \
        -ExposureTime \
        -ISO \
        -FNumber# \
        -Flash \
        -Make \
        -Model \
        -SerialNumber \
        -LensModel \
        -LensType \
        -LensSerialNumber \
        -FocalLength# \
        -GPSLatitude \
        -GPSLatitudeRef \
        -GPSLongitude \
        -GPSLongitudeRef \
        -GPSAltitude# \
        -GPSAltitudeRef \
        -GPSDateStamp \
        -GPSTimeStamp \
        -GPSSatellites \
        -GPSStatus \
        -GPSMeasureMode \
        -GPSMapDatum \
        -Volume \
        -Directory \
Halley Pacheco de Oliveira's avatar
Halley Pacheco de Oliveira committed
61 62 63
        -table \
        -dateFormat "%Y-%m-%d %H:%M:%S" \
        -coordFormat "%+.6f" \
64 65
        "$f"
done