Tuesday, 17 December 2024

exiftool

Tool to insert meta data into various file types and using various meta data formats. 

using struct to write address info:

..\..\software\exiftool-13.08_64\exiftool.exe -GPSLatitude=19.12 -GPSLongitude=73 -GPSAltitude=0 -GPSAltitudeRef=1 -XMP:WorldRegion=Asia -XMP:CountryName=Bharat -XMP:LocationId="RCP, Ghansoli, Navi Mumbai"  rcp_from_tc23_5b.jpg


General tags can go in fine:

..\..\software\exiftool-13.08_64\exiftool.exe -GPSLatitude=19.12 -GPSLongitude=73 -GPSAltitude=0 -GPSAltitudeRef=1 -WorldRegion=Asia -CountryName=Bharat -CountryCode=IN -City=Mumbai -LocationId="RCP, Ghansoli, Navi Mumbai"  rcp_from_tc23_5b.jpg

Here worldregion, countryname and locationId tags get rejected and we so passed them as struct above.

https://exiftool.org/TagNames/XMP.html#LocationDetails

List info:

C:\work\learn\unix>..\..\software\exiftool-13.08_64\exiftool.exe rcp_from_tc23_5b.jpg

ExifTool Version Number         : 13.08
File Name                       : rcp_from_tc23_5b.jpg
Directory                       : .
File Size                       : 3.5 MB
File Modification Date/Time     : 2024:12:17 18:31:45+05:30
File Access Date/Time           : 2024:12:17 18:31:47+05:30
File Creation Date/Time         : 2024:12:17 17:27:59+05:30
File Permissions                : -rw-rw-rw-
File Type                       : JPEG
File Type Extension             : jpg
MIME Type                       : image/jpeg
Exif Byte Order                 : Little-endian (Intel, II)
Make                            : samsung
Camera Model Name               : Galaxy M14 5G
Orientation                     : Horizontal (normal)
X Resolution                    : 72
Y Resolution                    : 72
Resolution Unit                 : inches
Software                        : M146BXXS7CXJ1
Modify Date                     : 2024:12:17 17:25:51
Y Cb Cr Positioning             : Centered
Exposure Time                   : 1/60
F Number                        : 1.8
Exposure Program                : Program AE
ISO                             : 40
Exif Version                    : 0220
Date/Time Original              : 2024:12:17 17:25:51
Create Date                     : 2024:12:17 17:25:51
Offset Time                     : +05:30
Offset Time Original            : +05:30
Shutter Speed Value             : 1
Aperture Value                  : 1.8
Brightness Value                : 2.78
Exposure Compensation           : 0
Max Aperture Value              : 1.8
Metering Mode                   : Center-weighted average
Flash                           : No Flash
Focal Length                    : 4.0 mm
Sub Sec Time                    : 752
Sub Sec Time Original           : 752
Sub Sec Time Digitized          : 752
Flashpix Version                : 0100
Color Space                     : sRGB
Exif Image Width                : 4080
Exif Image Height               : 3060
Exposure Mode                   : Auto
White Balance                   : Auto
Digital Zoom Ratio              : 1
Focal Length In 35mm Format     : 26 mm
Scene Capture Type              : Standard
GPS Version ID                  : 2.3.0.0
GPS Latitude                    : 19 deg 7' 12.00"
GPS Longitude                   : 73 deg 0' 0.00"
GPS Altitude Ref                : Above Sea Level
Compression                     : JPEG (old-style)
Thumbnail Offset                : 976
Thumbnail Length                : 59642
Current IPTC Digest             : 5432042f58e8876693f95ffa0dd9ed01
City                            : Mumbai
Application Record Version      : 4
XMP Toolkit                     : Image::ExifTool 13.08
Country Code                    : IN
Location Created City           : Navi Mumbai
Location Created Country Name   : Bharat
Location Created Province State : Maharashtra
Image Width                     : 4080
Image Height                    : 3060
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
Time Stamp                      : 2024:12:17 17:25:51.752+05:30
MCC Data                        : India (405)
Aperture                        : 1.8
Image Size                      : 4080x3060
Megapixels                      : 12.5
Scale Factor To 35 mm Equivalent: 6.5
Shutter Speed                   : 1/60
Create Date                     : 2024:12:17 17:25:51.752
Date/Time Original              : 2024:12:17 17:25:51.752+05:30
Modify Date                     : 2024:12:17 17:25:51.752+05:30
Thumbnail Image                 : (Binary data 59642 bytes, use -b option to extract)
GPS Altitude                    : 0 m Above Sea Level
Circle Of Confusion             : 0.005 mm
Field Of View                   : 69.4 deg
Focal Length                    : 4.0 mm (35 mm equivalent: 26.0 mm)
GPS Position                    : 19 deg 7' 12.00", 73 deg 0' 0.00"
Hyperfocal Distance             : 1.91 m
Light Value                     : 8.9