Hi,
currently, I am wrapping up a parsing function for .NET
Looking at different EXIF tag names EXIFtool returns I wonder if there is a list of tag names and values structures that do not change.
EXIF tags created by different cameras (drones in particular) can return new Tag Names which, at least to my understanding, EXIFtool just picks up and returns.
For example:
If EXIF data containing GPS Coordinates
Will tag
GPS Position will always be present?
And the value of that tag will always be expressed (like example) 46 deg 13' 26.01" N, 14 deg 36' 58.26" E
I am particularly interested in:
- ALL Time-related tags
GPS Coordinate tags.
Regards
Quote from: tadej on October 20, 2021, 04:50:58 AM
If EXIF data containing GPS Coordinates
Will tag GPS Position will always be present?
Since various phones have an option to turn off GPS, the answer is no.
QuoteAnd the value of that tag will always be expressed (like example) 46 deg 13' 26.01" N, 14 deg 36' 58.26" E
That is the default way exiftool will display coordinates, but it can be altered using the
-c (
-coordFormat) option (https://exiftool.org/exiftool_pod.html#c-FMT--coordFormat) with which you can format it as you like or with the
-n (
--printConv) option (https://exiftool.org/exiftool_pod.html#n---printConv), which will display the coordinate as a signed decimal degrees.
There is never any guarantee that certain tags will be in an image. When an image is fresh from a camera, there will be quite a few embedded EXIF tags and with some cameras, maybe even some XMP, usually regions which contain faces. But which tags are in the file varies wildly between camera manufacturer.
And that doesn't even take into account tthe various ways that metadata can be stripped. Just about every social media company strips away all metadata for privacy reasons and there's usually a way for OSes to do the same. For example, under Windows, you can Right Click->Properties->Details Tab and there's a button to "Remove ProDerties and Personal Information".
The only things that could be considered guaranteed for exiftool to display are going to be properties of the file system or image/video. Things like the OS system time stamps, permissions, file size, image dimensions, type of image (jpeg, BMP, PNG, Tiff, etc). The file system data can usually be changed but the other items can't be changed without fundamentally reprocessing the file in some way.
Thanks for the tip to modify GPS data display values.
Sure, if mobile phone GPS tagging is switched OFF then EXIF will not contain GPS info :).
There is one thing though which is annoying and probably should not be there:
bytes, use -b option to extract
is shown as a value in Thumbnail Image Tag.
Thanks
I have tried -n option.
I get numbers, enumerations,.. just fine.
However (I like this word), it would be nice if the resulting response for the whole lot would contain both. "Human-readable" and "Computer-readable" :)
As an option perhaps.
Sure, converting twice (-n and without -n) is doable :)
Like this?:
> exiftool t/images/GPS.jpg "-gps*" "-gps*#"
GPS Version ID : 2.0.0.0
GPS Latitude Ref : North
GPS Longitude Ref : West
GPS Time Stamp : 14:58:24
GPS Map Datum : WGS84
GPS Latitude : 54 deg 59' 22.80" N
GPS Longitude : 1 deg 54' 51.00" W
GPS Position : 54 deg 59' 22.80" N, 1 deg 54' 51.00" W
GPS Version ID : 2 0 0 0
GPS Latitude Ref : N
GPS Longitude Ref : W
GPS Time Stamp : 14:58:24
GPS Map Datum : WGS84
GPS Latitude : 54.9896666666667
GPS Longitude : -1.91416666666667
GPS Position : 54.9896666666667 -1.91416666666667
- Phil
No, like below
and replacing : with UNIQUE delimiter. Like 3x: :::
ExifTool Version Number : 12.33 ExifTool Version Number : 12.33
File Name : testIMAGE.jpg File Name : testIMAGE.jpg
Directory : . Directory : .
File Size : 2518429 File Size : 2.4 MiB
File Modification Date/Time : 2021:10:19 13:38:43+02:00 File Modification Date/Time : 2021:10:19 13:38:43+02:00
File Access Date/Time : 2021:10:25 23:31:56+02:00 File Access Date/Time : 2021:10:25 23:36:00+02:00
File Creation Date/Time : 2021:10:25 19:17:24+02:00 File Creation Date/Time : 2021:10:25 19:17:24+02:00
File Permissions : 100666 File Permissions : -rw-rw-rw-
File Type : JPEG File Type : JPEG
File Type Extension : JPG File Type Extension : jpg
MIME Type : image/jpeg MIME Type : image/jpeg
JFIF Version : 1 1 JFIF Version : 1.01
Exif Byte Order : II Exif Byte Order : Little-endian (Intel, II)
Make : samsung Make : samsung
Camera Model Name : SM-G930F Camera Model Name : SM-G930F
Orientation : 1 Orientation : Horizontal (normal)
X Resolution : 72 X Resolution : 72
Y Resolution : 72 Y Resolution : 72
Resolution Unit : 2 Resolution Unit : inches
Software : G930FXXU8ETI2 Software : G930FXXU8ETI2
Modify Date : 2021:10:17 17:01:08 Modify Date : 2021:10:17 17:01:08
Y Cb Cr Positioning : 1 Y Cb Cr Positioning : Centered
Exposure Time : 0.000946969697 Exposure Time : 1/1056
F Number : 1.7 F Number : 1.7
Exposure Program : 2 Exposure Program : Program AE
ISO : 50 ISO : 50
Exif Version : 0220 Exif Version : 0220
Date/Time Original : 2021:10:17 17:01:08 Date/Time Original : 2021:10:17 17:01:08
Create Date : 2021:10:17 17:01:08 Create Date : 2021:10:17 17:01:08
Components Configuration : 1 2 3 0 Components Configuration : Y, Cb, Cr, -
Shutter Speed Value : 0.000943297196215669 Shutter Speed Value : 1/1060
Aperture Value : 1.6993699982773 Aperture Value : 1.7
Brightness Value : 7.59 Brightness Value : 7.59
Exposure Compensation : 0 Exposure Compensation : 0
Max Aperture Value : 1.6993699982773 Max Aperture Value : 1.7
Metering Mode : 2 Metering Mode : Center-weighted average
Flash : 0 Flash : No Flash
Focal Length : 4.2 Focal Length : 4.2 mm
Maker Note Version : 0100 Maker Note Version : 0100
Device Type : 73728 Device Type : Cell Phone
Raw Data Byte Order : 0 Raw Data Byte Order : Little-endian (Intel, II)
Raw Data CFA Pattern : 1 Raw Data CFA Pattern : Swap
Face Detect : 0 Face Detect : Off
User Comment : User Comment :
Sub Sec Time : 0304 Sub Sec Time : 0304
Sub Sec Time Original : 0304 Sub Sec Time Original : 0304
Sub Sec Time Digitized : 0304 Sub Sec Time Digitized : 0304
Flashpix Version : 0100 Flashpix Version : 0100
Color Space : 1 Color Space : sRGB
Exif Image Width : 4032 Exif Image Width : 4032
Exif Image Height : 2268 Exif Image Height : 2268
Interoperability Index : R98 Interoperability Index : R98 - DCF basic file (sRGB)
Interoperability Version : 0100 Interoperability Version : 0100
Exposure Mode : 0 Exposure Mode : Auto
White Balance : 0 White Balance : Auto
Focal Length In 35mm Format : 26 Focal Length In 35mm Format : 26 mm
Scene Capture Type : 0 Scene Capture Type : Standard
Image Unique ID : D12LLJH03SM D12LLLC01GM. Image Unique ID : D12LLJH03SM D12LLLC01GM.
GPS Version ID : 2 2 0 0 GPS Version ID : 2.2.0.0
GPS Latitude Ref : N GPS Latitude Ref : North
GPS Longitude Ref : E GPS Longitude Ref : East
GPS Altitude Ref : 0 GPS Altitude Ref : Above Sea Level
GPS Time Stamp : 15:01:03 GPS Time Stamp : 15:01:03
GPS Date Stamp : 2021:10:17 GPS Date Stamp : 2021:10:17
Compression : 6 Compression : JPEG (old-style)
Thumbnail Offset : 1248 Thumbnail Offset : 1248
Thumbnail Length : 23254 Thumbnail Length : 23254
Image Width : 4032 Image Width : 4032
Image Height : 2268 Image Height : 2268
Encoding Process : 0 Encoding Process : Baseline DCT, Huffman coding
Bits Per Sample : 8 Bits Per Sample : 8
Color Components : 3 Color Components : 3
Y Cb Cr Sub Sampling : 2 2 Y Cb Cr Sub Sampling : YCbCr4:2:0 (2 2)
Aperture : 1.7 Aperture : 1.7
Image Size : 4032 2268 Image Size : 4032x2268
Megapixels : 9.144576 Megapixels : 9.1
Scale Factor To 35 mm Equivalent: 6.19047619047619 Scale Factor To 35 mm Equivalent: 6.2
Shutter Speed : 0.000946969697 Shutter Speed : 1/1056
Create Date : 2021:10:17 17:01:08.0304 Create Date : 2021:10:17 17:01:08.0304
Date/Time Original : 2021:10:17 17:01:08.0304 Date/Time Original : 2021:10:17 17:01:08.0304
Modify Date : 2021:10:17 17:01:08.0304 Modify Date : 2021:10:17 17:01:08.0304
Thumbnail Image : (Binary data 23254 bytes, use -b option to extract) Thumbnail Image : (Binary data 23254 bytes, use -b option to extract)
GPS Altitude : 611 GPS Altitude : 611 m Above Sea Level
GPS Date/Time : 2021:10:17 15:01:03Z GPS Date/Time : 2021:10:17 15:01:03Z
GPS Latitude : 45.7488888888889 GPS Latitude : 45 deg 44' 56.00" N
GPS Longitude : 14.3752777777778 GPS Longitude : 14 deg 22' 31.00" E
Circle Of Confusion : 0.00485362671697076 Circle Of Confusion : 0.005 mm
Field Of View : 69.3903656740024 Field Of View : 69.4 deg
Focal Length : 26 Focal Length : 4.2 mm (35 mm equivalent: 26.0 mm)
GPS Position : 45.7488888888889 14.3752777777778 GPS Position : 45 deg 44' 56.00" N, 14 deg 22' 31.00" E
Hyperfocal Distance : 2.13787981509865 Hyperfocal Distance : 2.14 m
Light Value : 12.5754636120382 Light Value : 12.6
No. ExifTool doesn't have that type of output formatting option.
- Phil