Skip to content

Instantly share code, notes, and snippets.

@april
Created May 12, 2023 14:33
Show Gist options
  • Save april/c4680b9c57734ac10240f8a4472e6842 to your computer and use it in GitHub Desktop.
Save april/c4680b9c57734ac10240f8a4472e6842 to your computer and use it in GitHub Desktop.
bluesky exif removal
Before:
$ exiftool DSCN0042.jpg | sort
AF Area Mode : Single Area
AF Point : Center
AF Points In Focus : (none)
Active D-Lighting : Off
Aperture : 4.4
Auxiliary Lens : Off
Bits Per Sample : 8
Brightness : n/a
Camera Model Name : COOLPIX P6000
Circle Of Confusion : 0.006 mm
Color Components : 3
Color Mode : Color
Color Space : sRGB
Components Configuration : Y, Cb, Cr, -
Compression : JPEG (old-style)
Contrast : Normal
Create Date : 2008:10:22 17:00:07
Custom Rendered : Normal
Data Dump : (Binary data 2542 bytes, use -b option to extract)
Date Stamp Mode : Off
Date/Time Original : 2008:10:22 17:00:07
Digital Zoom : 1
Digital Zoom Ratio : 0
Directory : .
Distortion Control : Off
Encoding Process : Baseline DCT, Huffman coding
Exif Byte Order : Little-endian (Intel, II)
Exif Image Height : 480
Exif Image Width : 640
Exif Version : 0220
ExifTool Version Number : 12.50
Exposure Compensation : 0
Exposure Mode : Auto
Exposure Program : Program AE
Exposure Time : 1/100
F Number : 4.4
Face Detect Frame Size : 320 240
Faces Detected : 0
Field Of View : 28.8 deg
File Access Date/Time : 2023:05:12 08:52:06-05:00
File Inode Change Date/Time : 2023:05:12 08:52:04-05:00
File Modification Date/Time : 2023:05:12 08:52:03-05:00
File Name : DSCN0042.jpg
File Permissions : -rw-r--r--
File Size : 157 kB
File Source : Digital Camera
File Type : JPEG
File Type Extension : jpg
Filter Effect : n/a
Flash : Off, Did not fire
Flash Setting :
Flashpix Version : 0100
Focal Length : 15.0 mm
Focal Length : 15.0 mm (35 mm equivalent: 70.0 mm)
Focal Length In 35mm Format : 70 mm
Focus Mode : AF-S
GPS Altitude Ref : Above Sea Level
GPS Date Stamp : 2008:10:23
GPS Date/Time : 2008:10:23 14:57:41.37Z
GPS Img Direction Ref : Unknown ()
GPS Latitude : 43 deg 27' 52.04" N
GPS Latitude Ref : North
GPS Longitude : 11 deg 52' 53.32" E
GPS Longitude Ref : East
GPS Map Datum : WGS-84
GPS Position : 43 deg 27' 52.04" N, 11 deg 52' 53.32" E
GPS Satellites : 04
GPS Time Stamp : 14:57:41.37
Gain Control : None
Hue Adjustment : n/a
Hyperfocal Distance : 7.94 m
ISO : 64
ISO Selection : Auto
Image Adjustment : Normal
Image Description :
Image Height : 480
Image Size : 640x480
Image Stabilization : VR-On
Image Width : 640
Interoperability Index : R98 - DCF basic file (sRGB)
Interoperability Version : 0100
Light Source : Unknown
Light Value : 11.6
MIME Type : image/jpeg
Make : NIKON
Maker Note Version : 2.10
Max Aperture Value : 2.7
Megapixels : 0.307
Metering Mode : Multi-segment
Modify Date : 2008:11:01 21:15:11
NEF Bit Depth : n/a (JPEG)
Nikon Capture Version : COOLPIX P6000V1.0
Noise Reduction : Off
Orientation : Horizontal (normal)
Picture Control Adjust : Full Control
Picture Control Base : Standard
Picture Control Name : Standard
Picture Control Quick Adjust : +2
Picture Control Version : 0100
Quality : Fine
Rating Percent : 0
Resolution Unit : inches
Retouch History : None
Saturation : Normal
Saturation Adj : 0
Scale Factor To 35 mm Equivalent: 4.7
Scene Assist :
Scene Capture Type : Standard
Scene Mode :
Scene Type : Directly photographed
Sharpness : Normal
Shutter Speed : 1/100
Software : Nikon Transfer 1.1 W
Subject Distance Range : Unknown
Thumbnail Image : (Binary data 6474 bytes, use -b option to extract)
Thumbnail Length : 6474
Thumbnail Offset : 4560
Tone Comp : Normal
Toning Effect : n/a
Toning Saturation : n/a
User Comment :
White Balance : Auto
X Resolution : 300
XMP Toolkit : Public XMP Toolkit Core 3.5
Y Cb Cr Positioning : Centered
Y Cb Cr Sub Sampling : YCbCr4:2:2 (2 1)
Y Resolution : 300
After:
$ exiftool exifinfo.jpeg | sort
Bits Per Sample : 8
Color Components : 3
Directory : .
Encoding Process : Baseline DCT, Huffman coding
Exif Byte Order : Little-endian (Intel, II)
Exif Image Height : 1500
Exif Image Width : 2000
ExifTool Version Number : 12.50
File Access Date/Time : 2023:05:12 09:28:54-05:00
File Inode Change Date/Time : 2023:05:12 09:28:51-05:00
File Modification Date/Time : 2023:05:12 09:28:44-05:00
File Name : exifinfo.jpeg
File Permissions : -rw-r--r--
File Size : 358 kB
File Type : JPEG
File Type Extension : jpg
Image Height : 1500
Image Size : 2000x1500
Image Width : 2000
MIME Type : image/jpeg
Megapixels : 3.0
Orientation : Horizontal (normal)
Resolution Unit : inches
X Resolution : 72
Y Cb Cr Sub Sampling : YCbCr4:2:0 (2 2)
Y Resolution : 72
@JustRLC
Copy link

JustRLC commented Dec 25, 2023

Hi, for clarification, is this the testing of Bluesky's exif metadata removal before and after? Just to save testing this myself

@april
Copy link
Author

april commented Dec 25, 2023 via email

@JustRLC
Copy link

JustRLC commented Dec 25, 2023

Amazing, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment