Exif Data

5 views
Skip to first unread message

Roger M. Jenson

unread,
Jan 25, 2023, 4:03:57 PM1/25/23
to Milwaukee Linux Users Group
You know that files contain Metadata, details such as the creator of the
file, the purpose of the file, and comments, if any. In the case of
photographs there is even more data called Exif (Exchangeable image file
format) data which includes some crucial data such as the date and time
of capturing an image, device, place, and so on. Using the Linux command
line tool named exiftool to <image.jpg>. The following is an example of
the data from a cell phone picture.

ExifTool Version Number         : 12.40
File Name                       : PXL_20221227_170501720.jpg
Directory                       : .
File Size                       : 4.6 MiB
File Modification Date/Time     : 2023:01:25 14:57:10-06:00
File Access Date/Time           : 2023:01:25 14:57:09-06:00
File Inode Change Date/Time     : 2023:01:25 14:57:11-06:00
File Permissions                : -rw-rw-r--
File Type                       : JPEG
File Type Extension             : jpg
MIME Type                       : image/jpeg
Exif Byte Order                 : Little-endian (Intel, II)
Make                            : Google
Camera Model Name               : Pixel 5
Orientation                     : Horizontal (normal)
X Resolution                    : 72
Y Resolution                    : 72
Resolution Unit                 : inches
Software                        : HDR+ 1.0.494820669zd
Modify Date                     : 2022:12:27 11:05:01
Y Cb Cr Positioning             : Centered
Exposure Time                   : 1/2924
F Number                        : 1.7
Exposure Program                : Program AE
ISO                             : 56
Exif Version                    : 0232
Date/Time Original              : 2022:12:27 11:05:01
Create Date                     : 2022:12:27 11:05:01
Offset Time                     : -06:00
Offset Time Original            : -06:00
Offset Time Digitized           : -06:00
Components Configuration        : Y, Cb, Cr, -
Shutter Speed Value             : 1/2916
Aperture Value                  : 1.7
Brightness Value                : 8.93
Exposure Compensation           : 0
Max Aperture Value              : 1.7
Subject Distance                : 5.86 m
Metering Mode                   : Center-weighted average
Flash                           : Off, Did not fire
Focal Length                    : 4.4 mm
Sub Sec Time                    : 720
Sub Sec Time Original           : 720
Sub Sec Time Digitized          : 720
Flashpix Version                : 0100
Color Space                     : sRGB
Exif Image Width                : 4032
Exif Image Height               : 3024
Interoperability Index          : R98 - DCF basic file (sRGB)
Interoperability Version        : 0100
Sensing Method                  : One-chip color area
Scene Type                      : Directly photographed
Custom Rendered                 : Custom
Exposure Mode                   : Auto
White Balance                   : Auto
Digital Zoom Ratio              : 0
Focal Length In 35mm Format     : 27 mm
Scene Capture Type              : Standard
Contrast                        : Normal
Saturation                      : Normal
Sharpness                       : Normal
Subject Distance Range          : Distant
Lens Make                       : Google
Lens Model                      : Pixel 5 back camera 4.38mm f/1.73
Composite Image                 : Composite Image Captured While Shooting
GPS Latitude Ref                : North
GPS Longitude Ref               : West
GPS Altitude Ref                : Above Sea Level
GPS Time Stamp                  : 17:04:45
GPS Img Direction Ref           : Magnetic North
GPS Img Direction               : 12
GPS Date Stamp                  : 2022:12:27
Compression                     : JPEG (old-style)
Thumbnail Offset                : 1343
Thumbnail Length                : 44298
XMP Toolkit                     : Adobe XMP Core 5.1.0-jc003
Has Extended XMP                : 505A7E6D91BFF3A31AC754E96C15AF77
JFIF Version                    : 1.02
Profile CMM Type                :
Profile Version                 : 4.0.0
Profile Class                   : Display Device Profile
Color Space Data                : RGB
Profile Connection Space        : XYZ
Profile Date Time               : 2016:12:08 09:38:28
Profile File Signature          : acsp
Primary Platform                : Unknown ()
CMM Flags                       : Not Embedded, Independent
Device Manufacturer             : Google
Device Model                    :
Device Attributes               : Reflective, Glossy, Positive, Color
Rendering Intent                : Perceptual
Connection Space Illuminant     : 0.9642 1 0.82491
Profile Creator                 : Google
Profile ID                      : 75e1a6b13c34376310c8ab660632a28a
Profile Description             : sRGB IEC61966-2.1
Profile Copyright               : Copyright (c) 2016 Google Inc.
Media White Point               : 0.95045 1 1.08905
Media Black Point               : 0 0 0
Red Matrix Column               : 0.43604 0.22249 0.01392
Green Matrix Column             : 0.38512 0.7169 0.09706
Blue Matrix Column              : 0.14305 0.06061 0.71391
Red Tone Reproduction Curve     : (Binary data 32 bytes, use -b option
to extract)
Chromatic Adaptation            : 1.04788 0.02292 -0.05019 0.02959
0.99048 -0.01704 -0.00922 0.01508 0.75168
Blue Tone Reproduction Curve    : (Binary data 32 bytes, use -b option
to extract)
Green Tone Reproduction Curve   : (Binary data 32 bytes, use -b option
to extract)
Image Width                     : 4032
Image Height                    : 3024
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
HDRP Maker Note                 : (Binary data 49541 bytes, use -b
option to extract)
Shot log data                   :
SERSUALvZDVtXnAeLOrjQ5jeplb6myppE637yEYTYX23H5H10Vk2fNuoQbDx3ZL9hzjKTohCXVuA0mRWuLJfllYWLKX8tGnw1LUphdIuNOL3RGMcXnUi3E32Z3ALgQjZPPybVtS14i67el+0MY8eKdsPzJw46aDVV2qoLQMIq7ia5LAJSFsIPjrb84Sw8YYGP8oDORa3mKUyM4RD/D7mkXsxEd7fzXwCVQPP3cr9gPi+bOMlXVjO6veNzt7ZXc1tHpNuvq0JgOOa9nP1xs20n8Wb2wT1e3IyoJSgpS2BTCq+SmAF2LeaaQpt5sdakSgF2cBFu4+pipkjchvXhJG4MjoeYQxz5osIlcUB4NL4FDrki07Qvipa6pb6JQjzfGp6YHxhhDbQLLT0XsxGiKQwiMjsVTn2JFnn92VJux+RFWtvGnRZzIe87ujGtpGTGl/9zaX6rk9SImFD0Ym4FnVnSexg7WHk+SyEm0iDgt/XNMz7FEVnzr4u7ekUAct6GZXZat0oOEppJt53gG1Ysc/4/lU0s/NrxhLwHZGkujpwIxcj8gDhJPOIl4FI6sLbNNtgZGQpX0NFmPaCnBG2DmnykB5o3XaC7n0aWj1wn6SMX9/ah6JAaewLQesdQRCK66+1ZTbfzrf/buxX9j0+H4scHz518Gn8780cUyN2qP+fzACk+Lhq8KPL2df6iAsRR8L6S08zT4SMPoYWFVde7eD7j9UV1Q4GjNUaYm2BIM+55YTIs4l3wpiPbZyMlIiNqiFqUnLIcYs=
Aperture                        : 1.7
Image Size                      : 4032x3024
Megapixels                      : 12.2
Scale Factor To 35 mm Equivalent: 6.2
Shutter Speed                   : 1/2924
Create Date                     : 2022:12:27 11:05:01.720-06:00
Date/Time Original              : 2022:12:27 11:05:01.720-06:00
Modify Date                     : 2022:12:27 11:05:01.720-06:00
Thumbnail Image                 : (Binary data 44298 bytes, use -b
option to extract)
GPS Altitude                    : 181.5 m Above Sea Level
GPS Date/Time                   : 2022:12:27 17:04:45Z
GPS Latitude                    : 42 deg 50' 1.14" N
GPS Longitude                   : 87 deg 57' 42.00" W
Circle Of Confusion             : 0.005 mm
Depth Of Field                  : inf (1.64 m - inf)
Field Of View                   : 67.4 deg
Focal Length                    : 4.4 mm (35 mm equivalent: 27.0 mm)
GPS Position                    : 42 deg 50' 1.14" N, 87 deg 57' 42.00" W
Hyperfocal Distance             : 2.28 m
Light Value                     : 13.9
Lens ID                         : Pixel 5 back camera 4.38mm f/1.73

After running the following command

exiftool -all= PXL_20221227_170501720.jpg

ExifTool Version Number         : 12.40
File Name                       : PXL_20221227_170501720.jpg
Directory                       : .
File Size                       : 4.5 MiB
File Modification Date/Time     : 2023:01:25 14:58:52-06:00
File Access Date/Time           : 2023:01:25 14:58:52-06:00
File Inode Change Date/Time     : 2023:01:25 14:58:52-06:00
File Permissions                : -rw-rw-r--
File Type                       : JPEG
File Type Extension             : jpg
MIME Type                       : image/jpeg
Image Width                     : 4032
Image Height                    : 3024
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
Image Size                      : 4032x3024
Megapixels                      : 12.2

The following URL takes you to an article titled "Remove Exif Data in
Linux Command Line".

https://linuxhandbook.com/remove-exif-data/#:~:text=To%20remove%20metadata%2C%20you%20have,the%20end%20of%20the%20file.


Having Fun,

Roger M. Jneson






CompMAS2

unread,
Jan 25, 2023, 7:31:18 PM1/25/23
to Milwau...@googlegroups.com
I know it isn't true Linux, but the following app is what I use on Android to remove the data before sending photos to people or companies.  It's a little more convenient than copying to a computer.


Regards,
Matt Starr

--
Homepage: http://www.milwaukeelug.org/home
This forum online: https://groups.google.com/forum/#!forum/MilwaukeeLUG
---
You received this message because you are subscribed to the Google Groups "Milwaukee Linux User's Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to MilwaukeeLUG...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/MilwaukeeLUG/1232c5fb-4ddd-d413-317c-9fb505cf6aed%40eyedigix.com.

Tom

unread,
Jan 26, 2023, 3:47:58 PM1/26/23
to Milwau...@googlegroups.com
Yeah, EXIF data is a little scary. When editing a photo in Gimp, if I know it's for publication, I add a copyright notice and strip out some of the data. Particularly the3 GPS coordinates where the photo was taken (!!!).
 
But doing it from the command line, as you demonstrated, is an easier approach.
 
I wonder if one might keep a table of EXIF data that you actually want to appear in the photos and automate stripping out the other stuff and inserting certain values.
 
-T
--
---
You received this message because you are subscribed to the Google Groups
"Milwaukee Linux User's Group" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
fb505cf6aed%40eyedigix.com.
 

Tom Peters • a50m...@gmail.com • N9QQB (amateur radio)
"HEY YOU" (loud shouting) • Second Tops (Set Dancing) • FIND ME ON FACEBOOK
43° 7' 17.2" N by 88° 6' 28.9" W • Elevation 815' • Grid Square EN53wc
Sr. Systems Administrator • Open-source Dude • Musician • Registered Linux User 385531
--... ...-- / -.. . / -. ----. --.- --.- -...
 
Reply all
Reply to author
Forward
0 new messages