# exif



### Supprimer les exifs:

#### Avec exiv2:

```bash
# exiv2

exiv2 rm 12-2017.jpg
```



#### Avec exiftool:

```bash
# Crée une copie de l'original (12_2017-2.jpg_original)

exiftool -all= 12_2017-2.jpg
Warning: ICC_Profile deleted. Image colors may be affected - 12_2017-2.jpg
    1 image files updated
    
   
# Sans backup

exiftool -overwrite_original -all= 12_2017-2.jpg_original
Warning: ICC_Profile deleted. Image colors may be affected - 12_2017-2.jpg_original
    1 image files updated

```



### Voir les exifs:

Afficher tous les tags que exiftool reconnait:

```bash
$ exiftool -list
Available tags:
  A100DataOffset AAFManufacturerID ABDate ABLabel ABRelatedNames AB_UID
  ACoordOfBottomRightCorner ACoordOfTopRightCorner ADJDebugInfo
  ADLBracketingStep ADLBracketingType AEAperture AEApertureSteps AEBAutoCancel
  AEBBracketValue AEBSequence AEBSequenceAutoCancel AEBShotCount AEBXv
  AEBracketingSteps AECAggressiveness AECCurrentExpIndex AECCurrentSensorLuma
.../...
Command-line shortcuts:
  AllDates Canon ColorSpaceTags Common CommonIFD0 LargeTags MakerNotes Nikon
  Unsafe ls-l

$ exiftool -list | grep Keyword
  AppleDataOffsets AppleKeywords AppleMailDateReceived AppleMailDateSent
  ArchivedFileName Arranger ArrangerKeywords ArtDirector ArtFilter
  ComponentsInSequence Composer ComposerKeywords ComposerSortOrder Composers

```



AllDates:

```bash
$ exiftool -AllDates 2022-08-12_Chevreuils_6405.jpg
Date/Time Original              : 2022:08:12 19:55:01
Create Date                     : 2022:08:12 19:55:01
Modify Date                     : 2022:08:14 21:05:21
```

Canon:

```bash
$ exiftool -Canon 2022-08-12_Chevreuils_6405.jpg
File Name                       : 2022-08-12_Chevreuils_6405.jpg
Camera Model Name               : Canon EOS R6
Date/Time Original              : 2022:08:12 19:55:01
Shutter Speed                   : 1/1250
Aperture                        : 4.0
Metering Mode                   : Multi-segment
Exposure Compensation           : +4/3
ISO                             : 320
Lens                            : EF600mm f/4L IS III USM
Focal Length                    : 600.0 mm
Image Size                      : 1600x1067
Flash                           : No Flash
White Balance                   : Manual
Sharpness                       : 40
Saturation                      : +6
Color Space                     : sRGB
File Size                       : 335 kB
Serial Number                   : 083021004471
```

Common:

```bash
$ exiftool -Common 2022-08-12_Chevreuils_6405.jpg
File Name                       : 2022-08-12_Chevreuils_6405.jpg
File Size                       : 335 kB
Camera Model Name               : Canon EOS R6
Date/Time Original              : 2022:08:12 19:55:01
Image Size                      : 1600x1067
Focal Length                    : 600.0 mm
Shutter Speed                   : 1/1250
Aperture                        : 4.0
ISO                             : 320
White Balance                   : Manual
Flash                           : No Flash
```

CommonIFD0:

```bash
$ exiftool -CommonIFD0 2022-08-12_Chevreuils_6405.jpg
Make                            : Canon
Camera Model Name               : Canon EOS R6
Software                        : Adobe Photoshop Lightroom Classic 11.4.1 (Macintosh)
Modify Date                     : 2022:08:14 21:05:21
Artist                          : Pesenti
Copyright                       : clicclac.info
```

LargeTags:

```bash
$ exiftool -LargeTags 2022-08-12_Chevreuils_6405.jpg
EXIF                            : (Binary data 20300 bytes, use -b option to extract)
ICC Profile                     : (Binary data 3144 bytes, use -b option to extract)
IPTC                            : (Binary data 192 bytes, use -b option to extract)
Thumbnail Image                 : (Binary data 19320 bytes, use -b option to extract)
XMP                             : (Binary data 13314 bytes, use -b option to extract)
```

ls-l:

```bash
$ exiftool -ls-l 2022-08-12_Chevreuils_6405.jpg
File Permissions                : -rw-r--r--
File Hard Links                 : 1
File User ID                    : bruno
File Group ID                   : staff
File Size                       : 334966
File Modification Date/Time     : 2022:08:14 21:05:22+02:00
File Name                       : 2022-08-12_Chevreuils_6405.jpg
```

Sans option:

```bash
$ exiftool 2022-08-12_Chevreuils_6405.jpg
ExifTool Version Number         : 12.42
File Name                       : 2022-08-12_Chevreuils_6405.jpg
Directory                       : .
File Size                       : 335 kB
File Modification Date/Time     : 2022:08:14 21:05:22+02:00
File Access Date/Time           : 2022:08:15 08:56:12+02:00
File Inode Change Date/Time     : 2022:08:15 08:56:10+02:00
File Permissions                : -rw-r--r--
File Type                       : JPEG
File Type Extension             : jpg
MIME Type                       : image/jpeg
Exif Byte Order                 : Little-endian (Intel, II)
Make                            : Canon
Camera Model Name               : Canon EOS R6
X Resolution                    : 72
Y Resolution                    : 72
Resolution Unit                 : inches
Software                        : Adobe Photoshop Lightroom Classic 11.4.1 (Macintosh)
Modify Date                     : 2022:08:14 21:05:21
Artist                          : Pesenti
Copyright                       : clicclac.info
Exposure Time                   : 1/1250
F Number                        : 4.0
Exposure Program                : Shutter speed priority AE
ISO                             : 320
Sensitivity Type                : Recommended Exposure Index
Recommended Exposure Index      : 320
Exif Version                    : 0231
Date/Time Original              : 2022:08:12 19:55:01
Create Date                     : 2022:08:12 19:55:01
Offset Time                     : +02:00
Offset Time Original            : +02:00
Offset Time Digitized           : +02:00
Shutter Speed Value             : 1/1250
Aperture Value                  : 4.0
Exposure Compensation           : +4/3
Max Aperture Value              : 4.2
Metering Mode                   : Multi-segment
Flash                           : No Flash
Focal Length                    : 600.0 mm
Sub Sec Time Original           : 29
Sub Sec Time Digitized          : 29
Color Space                     : sRGB
Focal Plane X Resolution        : 1520
Focal Plane Y Resolution        : 1520
Focal Plane Resolution Unit     : cm
Custom Rendered                 : Normal
Exposure Mode                   : Auto
White Balance                   : Manual
Scene Capture Type              : Standard
Serial Number                   : 083021004471
Lens Info                       : 600mm f/?
Lens Model                      : EF600mm f/4L IS III USM
Lens Serial Number              : 7110000203
Compression                     : JPEG (old-style)
Thumbnail Offset                : 992
Thumbnail Length                : 19320
Displayed Units X               : inches
Displayed Units Y               : inches
Current IPTC Digest             : 118667209c5b6206903e30011744a4a4
Coded Character Set             : UTF8
Application Record Version      : 4
Keywords                        : accouplement, brocard, capreolus capreolus, chevrette, chevreuil, rut
Time Created                    : 19:55:01+02:00
Digital Creation Date           : 2022:08:12
Digital Creation Time           : 19:55:01+02:00
By-line                         : Pesenti
Copyright Notice                : clicclac.info
Copyright Flag                  : True
Photoshop Thumbnail             : (Binary data 19320 bytes, use -b option to extract)
IPTC Digest                     : 118667209c5b6206903e30011744a4a4
Profile CMM Type                : Linotronic
Profile Version                 : 2.1.0
Profile Class                   : Display Device Profile
Color Space Data                : RGB
Profile Connection Space        : XYZ
Profile Date Time               : 1998:02:09 06:49:00
Profile File Signature          : acsp
Primary Platform                : Microsoft Corporation
CMM Flags                       : Not Embedded, Independent
Device Manufacturer             : Hewlett-Packard
Device Model                    : sRGB
Device Attributes               : Reflective, Glossy, Positive, Color
Rendering Intent                : Perceptual
Connection Space Illuminant     : 0.9642 1 0.82491
Profile Creator                 : Hewlett-Packard
Profile ID                      : 0
Profile Copyright               : Copyright (c) 1998 Hewlett-Packard Company
Profile Description             : sRGB IEC61966-2.1
Media White Point               : 0.95045 1 1.08905
Media Black Point               : 0 0 0
Red Matrix Column               : 0.43607 0.22249 0.01392
Green Matrix Column             : 0.38515 0.71687 0.09708
Blue Matrix Column              : 0.14307 0.06061 0.7141
Device Mfg Desc                 : IEC http://www.iec.ch
Device Model Desc               : IEC 61966-2.1 Default RGB colour space - sRGB
Viewing Cond Desc               : Reference Viewing Condition in IEC61966-2.1
Viewing Cond Illuminant         : 19.6445 20.3718 16.8089
Viewing Cond Surround           : 3.92889 4.07439 3.36179
Viewing Cond Illuminant Type    : D50
Luminance                       : 76.03647 80 87.12462
Measurement Observer            : CIE 1931
Measurement Backing             : 0 0 0
Measurement Geometry            : Unknown
Measurement Flare               : 0.999%
Measurement Illuminant          : D65
Technology                      : Cathode Ray Tube Display
Red Tone Reproduction Curve     : (Binary data 2060 bytes, use -b option to extract)
Green Tone Reproduction Curve   : (Binary data 2060 bytes, use -b option to extract)
Blue Tone Reproduction Curve    : (Binary data 2060 bytes, use -b option to extract)
XMP Toolkit                     : Adobe XMP Core 7.0-c000 1.000000, 0000/00/00-00:00:00
Metadata Date                   : 2022:08:14 21:05:21+02:00
Rating                          : 4
Label                           : Selection
Creator Tool                    : Adobe Photoshop Lightroom Classic 11.4.1 (Macintosh)
Format                          : image/jpeg
Lens                            : EF600mm f/4L IS III USM
Image Number                    : 0
Approximate Focus Distance      : 46.1
Flash Compensation              : 0
Firmware                        : 1.5.2
Distortion Correction Already Applied: True
Lateral Chromatic Aberration Correction Already Applied: True
Vignette Correction Already Applied: True
Date Created                    : 2022:08:12 19:55:01.29+02:00
Document ID                     : xmp.did:3de77c21-df1e-4bd1-9559-2cf2841fbb35
Preserved File Name             : IMG_6405.CR3
Original Document ID            : C63EBF3F8F3BED8866DB0BDC4A24F281
Instance ID                     : xmp.iid:3de77c21-df1e-4bd1-9559-2cf2841fbb35
Marked                          : True
Raw File Name                   : 2022-08-12_Chevreuils_6405.CR3
Version                         : 14.4.1
Process Version                 : 11.0
Color Temperature               : 6050
Tint                            : +4
Exposure 2012                   : +1.50
Contrast 2012                   : 0
Highlights 2012                 : +13
Shadows 2012                    : +8
Whites 2012                     : +12
Blacks 2012                     : 0
Texture                         : +13
Clarity 2012                    : +16
Dehaze                          : 0
Vibrance                        : +9
Saturation                      : +6
Parametric Shadows              : 0
Parametric Darks                : 0
Parametric Lights               : 0
Parametric Highlights           : 0
Parametric Shadow Split         : 25
Parametric Midtone Split        : 50
Parametric Highlight Split      : 75
Sharpness                       : 40
Sharpen Radius                  : +1.0
Sharpen Detail                  : 25
Sharpen Edge Masking            : 0
Luminance Smoothing             : 0
Color Noise Reduction           : 25
Color Noise Reduction Detail    : 50
Color Noise Reduction Smoothness: 50
Hue Adjustment Red              : 0
Hue Adjustment Orange           : 0
Hue Adjustment Yellow           : 0
Hue Adjustment Green            : 0
Hue Adjustment Aqua             : 0
Hue Adjustment Blue             : 0
Hue Adjustment Purple           : 0
Hue Adjustment Magenta          : 0
Saturation Adjustment Red       : 0
Saturation Adjustment Orange    : 0
Saturation Adjustment Yellow    : 0
Saturation Adjustment Green     : 0
Saturation Adjustment Aqua      : 0
Saturation Adjustment Blue      : 0
Saturation Adjustment Purple    : 0
Saturation Adjustment Magenta   : 0
Luminance Adjustment Red        : 0
Luminance Adjustment Orange     : 0
Luminance Adjustment Yellow     : 0
Luminance Adjustment Green      : 0
Luminance Adjustment Aqua       : 0
Luminance Adjustment Blue       : 0
Luminance Adjustment Purple     : 0
Luminance Adjustment Magenta    : 0
Split Toning Shadow Hue         : 0
Split Toning Shadow Saturation  : 0
Split Toning Highlight Hue      : 0
Split Toning Highlight Saturation: 0
Split Toning Balance            : 0
Color Grade Midtone Hue         : 0
Color Grade Midtone Sat         : 0
Color Grade Shadow Lum          : 0
Color Grade Midtone Lum         : 0
Color Grade Highlight Lum       : 0
Color Grade Blending            : 50
Color Grade Global Hue          : 0
Color Grade Global Sat          : 0
Color Grade Global Lum          : 0
Auto Lateral CA                 : 1
Lens Profile Enable             : 1
Lens Manual Distortion Amount   : 0
Vignette Amount                 : 0
Defringe Purple Amount          : 0
Defringe Purple Hue Lo          : 30
Defringe Purple Hue Hi          : 70
Defringe Green Amount           : 0
Defringe Green Hue Lo           : 40
Defringe Green Hue Hi           : 60
Perspective Upright             : 0
Perspective Vertical            : 0
Perspective Horizontal          : 0
Perspective Rotate              : 0.0
Perspective Aspect              : 0
Perspective Scale               : 100
Perspective X                   : 0.00
Perspective Y                   : 0.00
Grain Amount                    : 0
Post Crop Vignette Amount       : 0
Shadow Tint                     : 0
Red Hue                         : 0
Red Saturation                  : 0
Green Hue                       : 0
Green Saturation                : 0
Blue Hue                        : 0
Blue Saturation                 : 0
Override Look Vignette          : False
Tone Curve Name 2012            : Custom
Camera Profile                  : Adobe Standard
Camera Profile Digest           : 441F68BD6BC3369B59256B103CE2CD5C
Lens Profile Setup              : Custom
Lens Profile Name               : Adobe (Canon EF 600mm f/4L IS III USM)
Lens Profile Filename           : Canon (Canon EF 600mm f4L IS III USM) - RAW.lcp
Lens Profile Digest             : A58C82ECDC77A3A3EAD3EA167A0DED19
Lens Profile Is Embedded        : False
Lens Profile Distortion Scale   : 100
Lens Profile Vignetting Scale   : 100
Has Settings                    : True
Crop Top                        : 0.174748
Crop Left                       : 0
Crop Bottom                     : 1
Crop Right                      : 0.825252
Crop Angle                      : 0
Crop Constrain To Warp          : 0
Has Crop                        : True
Already Applied                 : True
Creator                         : Pesenti
Rights                          : clicclac.info
Subject                         : accouplement, brocard, capreolus capreolus, chevrette, chevreuil, rut
History Action                  : derived, saved
History Parameters              : converted from image/x-canon-cr3 to image/jpeg, saved to new location
History Instance ID             : xmp.iid:3de77c21-df1e-4bd1-9559-2cf2841fbb35
History When                    : 2022:08:14 21:05:21+02:00
History Software Agent          : Adobe Photoshop Lightroom Classic 11.4.1 (Macintosh)
History Changed                 : /
Derived From Document ID        : C63EBF3F8F3BED8866DB0BDC4A24F281
Derived From Original Document ID: C63EBF3F8F3BED8866DB0BDC4A24F281
Weighted Flat Subject           : accouplement, brocard, capreolus capreolus, chevrette, chevreuil, rut
Tone Curve PV2012               : 0, 0, 31, 42, 56, 88, 191, 208, 255, 255
Tone Curve PV2012 Red           : 0, 0, 255, 255
Tone Curve PV2012 Green         : 0, 0, 255, 255
Tone Curve PV2012 Blue          : 0, 0, 255, 255
Look Name                       : Adobe Color
Look Amount                     : 1
Look UUID                       : B952C231111CD8E0ECCF14B86BAA7077
Look Supports Amount            : false
Look Supports Monochrome        : false
Look Supports Output Referred   : false
Look Group                      : Profiles
Look Parameters Version         : 14.4.1
Look Parameters Process Version : 11.0
Look Parameters Convert To Grayscale: False
Look Parameters Camera Profile  : Adobe Standard
Look Parameters Look Table      : E1095149FDB39D7A057BAB208837E2E1
Look Parameters Tone Curve PV2012: 0, 0, 22, 16, 40, 35, 127, 127, 224, 230, 240, 246, 255, 255
Look Parameters Tone Curve PV2012 Red: 0, 0, 255, 255
Look Parameters Tone Curve PV2012 Green: 0, 0, 255, 255
Look Parameters Tone Curve PV2012 Blue: 0, 0, 255, 255
DCT Encode Version              : 100
APP14 Flags 0                   : [14], Encoded with Blend=1 downsampling
APP14 Flags 1                   : (none)
Color Transform                 : YCbCr
Comment                         : Optimized by JPEGmini 3.18.9.220874607-AV 0xf034c802
Image Width                     : 1600
Image Height                    : 1067
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
Aperture                        : 4.0
Image Size                      : 1600x1067
Megapixels                      : 1.7
Scale Factor To 35 mm Equivalent: 3.4
Shutter Speed                   : 1/1250
Create Date                     : 2022:08:12 19:55:01.29+02:00
Date/Time Original              : 2022:08:12 19:55:01.29+02:00
Modify Date                     : 2022:08:14 21:05:21+02:00
Thumbnail Image                 : (Binary data 19320 bytes, use -b option to extract)
Date/Time Created               : 2022:08:12 19:55:01+02:00
Digital Creation Date/Time      : 2022:08:12 19:55:01+02:00
Circle Of Confusion             : 0.009 mm
Depth Of Field                  : 0.41 m (45.90 - 46.31 m)
Field Of View                   : 1.0 deg
Focal Length                    : 600.0 mm (35 mm equivalent: 2051.8 mm)
Hyperfocal Distance             : 10243.22 m
Light Value                     : 12.6
Lens ID                         : Canon EF 600mm f/4L IS III USM

```

Voir les infos GPS:

```bash
# zsh
❯ exiftool 12_2017.jpg -'GPS*'

# bash
❯ exiftool 12_2017.jpg -GPS*
GPS Version ID                  : 2.2.0.0
GPS Latitude Ref                : North
GPS Longitude Ref               : East
GPS Altitude                    : 0.7094 m
GPS Latitude                    : 43 deg 31' 30.64" N
GPS Longitude                   : 4 deg 38' 15.31" E
GPS Position                    : 43 deg 31' 30.64" N, 4 deg 38' 15.31" E

```

Mots-clé:

```bash
$ exiftool -s -Keywords 2022-08-12_Chevreuils_6405.jpg
Keywords                        : accouplement, brocard, capreolus capreolus, chevrette, chevreuil, rut
```



```bash
# Supprimer les coord. GPS:

❯ exiftool -gps:all= 12_2017.jpg
    1 image files updated

❯ exiftool 12_2017.jpg -'GPS*'

```



```bash
# Restaurer l'original:

❯ exiftool -restore_original 12_2017.jpg
    1 image files found
    1 image files restored from original

```

https://adamtheautomator.com/exiftool/