How can I read and remove meta (exif) data from my photos using the command line?












49














Just looked this up. Figure I'd share it here for future reference.










share|improve this question



























    49














    Just looked this up. Figure I'd share it here for future reference.










    share|improve this question

























      49












      49








      49


      24





      Just looked this up. Figure I'd share it here for future reference.










      share|improve this question













      Just looked this up. Figure I'd share it here for future reference.







      command-line privacy jpeg






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 24 '13 at 20:24









      klenwell

      1,44431825




      1,44431825






















          3 Answers
          3






          active

          oldest

          votes


















          68














          Install exiftool:



          sudo apt-get install libimage-exiftool-perl


          To read photo metadata:



          exiftool /tmp/my_photo.jpg


          To erase photo metadata:



          exiftool -all= /tmp/my_photo.jpg


          Before:



          ExifTool Version Number         : 8.60
          File Name : my_photo.jpg
          Directory : /tmp
          File Size : 3.0 MB
          File Modification Date/Time : 2013:02:24 12:08:10-08:00
          File Permissions : rw-rw-r--
          File Type : JPEG
          MIME Type : image/jpeg
          Exif Byte Order : Big-endian (Motorola, MM)
          Orientation : Unknown (0)
          Y Cb Cr Positioning : Centered
          X Resolution : 72
          Y Resolution : 72
          Resolution Unit : inches
          Modify Date : 2013:02:24 11:25:27
          Make : Samsung
          Camera Model Name : Galaxy Nexus
          Exif Version : 0220
          Flashpix Version :
          Color Space : sRGB
          Components Configuration : Y, Cb, Cr, -
          Compressed Bits Per Pixel : 0
          Exif Image Width : 1944
          Exif Image Height : 2592
          Date/Time Original : 2013:02:24 11:25:27
          Create Date : 2013:02:24 11:25:27
          Exposure Time : 1/354
          F Number : 2.8
          Exposure Program : Aperture-priority AE
          ISO : 50, 0, 0
          Shutter Speed Value : 1/353
          Aperture Value : 2.6
          Brightness Value : 0
          Exposure Compensation : 0
          Max Aperture Value : 2.6
          Subject Distance : 0 m
          Metering Mode : Multi-spot
          Light Source : Daylight
          Flash : No Flash
          Focal Length : 3.4 mm
          Flash Energy : 0
          Exposure Index : undef
          Sensing Method : One-chip color area
          Scene Type : Directly photographed
          Custom Rendered : Custom
          Exposure Mode : Auto
          White Balance : Auto
          Digital Zoom Ratio : 1
          Scene Capture Type : Standard
          Contrast : Normal
          Saturation : Normal
          Sharpness : Normal
          Subject Distance Range : Unknown
          Image Unique ID : OAEL01
          GPS Time Stamp : 19:25:27
          GPS Date Stamp : 2013:02:24
          Compression : JPEG (old-style)
          Thumbnail Offset : 2143
          Thumbnail Length : 10941
          Image Width : 1944
          Image Height : 2592
          Encoding Process : Baseline DCT, Huffman coding
          Bits Per Sample : 8
          Color Components : 3
          Y Cb Cr Sub Sampling : YCbCr4:2:0 (2 2)
          Aperture : 2.8
          GPS Date/Time : 2013:02:24 19:25:27Z
          Image Size : 1944x2592
          Shutter Speed : 1/354
          Thumbnail Image : (Binary data 10941 bytes, use -b option to extract)
          Focal Length : 3.4 mm
          Light Value : 12.4


          After:



          ExifTool Version Number         : 8.60
          File Name : my_photo.jpg
          Directory : /tmp
          File Size : 2.9 MB
          File Modification Date/Time : 2013:02:24 12:21:39-08:00
          File Permissions : rw-rw-r--
          File Type : JPEG
          MIME Type : image/jpeg
          Image Width : 1944
          Image Height : 2592
          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 : 1944x2592


          References:




          • http://www.mattcutts.com/blog/howto-strip-jpeg-metadata/

          • http://hacktux.com/read/remove/exif

          • http://www.sno.phy.queensu.ca/~phil/exiftool/exiftool_pod.html






          share|improve this answer

















          • 1




            To process all files in the current directory: for f in *.jpg; do exiftool -all= "$f"; done
            – twobeers
            Jun 23 '14 at 9:38








          • 5




            or just exiftool *.jpg
            – gavenkoa
            Oct 23 '14 at 16:22



















          7














          Imagemagick



          Instead of Exiftool I found more useful and command more easy to remember using Imagemagick:



          To read



          identify -verbose myphoto.jpg | grep exif


          To remove



          With imagemagick package installed you can do this (not only for JPEGs):



          mogrify -strip *.jpg


          From manual:




          -strip



          strip the image of any profiles, comments or these PNG chunks: bKGD,cHRM,EXIF,gAMA,iCCP,iTXt,sRGB,tEXt,zCCP,zTXt,date.




          AFAIK the only difference is that mogrify won't remove this metadata:




          • JFIF Version

          • Resolution Unit

          • X Resolution

          • Y Resolution


          Which I found useful. Compared with diff -y <(exiftool wMogrify.jpg) <(exiftool wExiftool.jpg)





          If you prefer Exiftool you might found useful creating an alias to exiftool -all= *.jpg && rm *original.



          Another alternative (only for JPEGs) is jhead.






          share|improve this answer































            5














            To remove then change a single field we can use this command:



            root@kurawa:~# exiftool -Copyright= IMG_3357.jpg
            root@kurawa:~# exiftool -Copyright=LinuxSlaves IMG_3357.jpg


            Reference: http://www.linuxslaves.com/2015/05/view-and-manipulate-exif-metadata-image.html






            share|improve this answer























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "89"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f260810%2fhow-can-i-read-and-remove-meta-exif-data-from-my-photos-using-the-command-line%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              68














              Install exiftool:



              sudo apt-get install libimage-exiftool-perl


              To read photo metadata:



              exiftool /tmp/my_photo.jpg


              To erase photo metadata:



              exiftool -all= /tmp/my_photo.jpg


              Before:



              ExifTool Version Number         : 8.60
              File Name : my_photo.jpg
              Directory : /tmp
              File Size : 3.0 MB
              File Modification Date/Time : 2013:02:24 12:08:10-08:00
              File Permissions : rw-rw-r--
              File Type : JPEG
              MIME Type : image/jpeg
              Exif Byte Order : Big-endian (Motorola, MM)
              Orientation : Unknown (0)
              Y Cb Cr Positioning : Centered
              X Resolution : 72
              Y Resolution : 72
              Resolution Unit : inches
              Modify Date : 2013:02:24 11:25:27
              Make : Samsung
              Camera Model Name : Galaxy Nexus
              Exif Version : 0220
              Flashpix Version :
              Color Space : sRGB
              Components Configuration : Y, Cb, Cr, -
              Compressed Bits Per Pixel : 0
              Exif Image Width : 1944
              Exif Image Height : 2592
              Date/Time Original : 2013:02:24 11:25:27
              Create Date : 2013:02:24 11:25:27
              Exposure Time : 1/354
              F Number : 2.8
              Exposure Program : Aperture-priority AE
              ISO : 50, 0, 0
              Shutter Speed Value : 1/353
              Aperture Value : 2.6
              Brightness Value : 0
              Exposure Compensation : 0
              Max Aperture Value : 2.6
              Subject Distance : 0 m
              Metering Mode : Multi-spot
              Light Source : Daylight
              Flash : No Flash
              Focal Length : 3.4 mm
              Flash Energy : 0
              Exposure Index : undef
              Sensing Method : One-chip color area
              Scene Type : Directly photographed
              Custom Rendered : Custom
              Exposure Mode : Auto
              White Balance : Auto
              Digital Zoom Ratio : 1
              Scene Capture Type : Standard
              Contrast : Normal
              Saturation : Normal
              Sharpness : Normal
              Subject Distance Range : Unknown
              Image Unique ID : OAEL01
              GPS Time Stamp : 19:25:27
              GPS Date Stamp : 2013:02:24
              Compression : JPEG (old-style)
              Thumbnail Offset : 2143
              Thumbnail Length : 10941
              Image Width : 1944
              Image Height : 2592
              Encoding Process : Baseline DCT, Huffman coding
              Bits Per Sample : 8
              Color Components : 3
              Y Cb Cr Sub Sampling : YCbCr4:2:0 (2 2)
              Aperture : 2.8
              GPS Date/Time : 2013:02:24 19:25:27Z
              Image Size : 1944x2592
              Shutter Speed : 1/354
              Thumbnail Image : (Binary data 10941 bytes, use -b option to extract)
              Focal Length : 3.4 mm
              Light Value : 12.4


              After:



              ExifTool Version Number         : 8.60
              File Name : my_photo.jpg
              Directory : /tmp
              File Size : 2.9 MB
              File Modification Date/Time : 2013:02:24 12:21:39-08:00
              File Permissions : rw-rw-r--
              File Type : JPEG
              MIME Type : image/jpeg
              Image Width : 1944
              Image Height : 2592
              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 : 1944x2592


              References:




              • http://www.mattcutts.com/blog/howto-strip-jpeg-metadata/

              • http://hacktux.com/read/remove/exif

              • http://www.sno.phy.queensu.ca/~phil/exiftool/exiftool_pod.html






              share|improve this answer

















              • 1




                To process all files in the current directory: for f in *.jpg; do exiftool -all= "$f"; done
                – twobeers
                Jun 23 '14 at 9:38








              • 5




                or just exiftool *.jpg
                – gavenkoa
                Oct 23 '14 at 16:22
















              68














              Install exiftool:



              sudo apt-get install libimage-exiftool-perl


              To read photo metadata:



              exiftool /tmp/my_photo.jpg


              To erase photo metadata:



              exiftool -all= /tmp/my_photo.jpg


              Before:



              ExifTool Version Number         : 8.60
              File Name : my_photo.jpg
              Directory : /tmp
              File Size : 3.0 MB
              File Modification Date/Time : 2013:02:24 12:08:10-08:00
              File Permissions : rw-rw-r--
              File Type : JPEG
              MIME Type : image/jpeg
              Exif Byte Order : Big-endian (Motorola, MM)
              Orientation : Unknown (0)
              Y Cb Cr Positioning : Centered
              X Resolution : 72
              Y Resolution : 72
              Resolution Unit : inches
              Modify Date : 2013:02:24 11:25:27
              Make : Samsung
              Camera Model Name : Galaxy Nexus
              Exif Version : 0220
              Flashpix Version :
              Color Space : sRGB
              Components Configuration : Y, Cb, Cr, -
              Compressed Bits Per Pixel : 0
              Exif Image Width : 1944
              Exif Image Height : 2592
              Date/Time Original : 2013:02:24 11:25:27
              Create Date : 2013:02:24 11:25:27
              Exposure Time : 1/354
              F Number : 2.8
              Exposure Program : Aperture-priority AE
              ISO : 50, 0, 0
              Shutter Speed Value : 1/353
              Aperture Value : 2.6
              Brightness Value : 0
              Exposure Compensation : 0
              Max Aperture Value : 2.6
              Subject Distance : 0 m
              Metering Mode : Multi-spot
              Light Source : Daylight
              Flash : No Flash
              Focal Length : 3.4 mm
              Flash Energy : 0
              Exposure Index : undef
              Sensing Method : One-chip color area
              Scene Type : Directly photographed
              Custom Rendered : Custom
              Exposure Mode : Auto
              White Balance : Auto
              Digital Zoom Ratio : 1
              Scene Capture Type : Standard
              Contrast : Normal
              Saturation : Normal
              Sharpness : Normal
              Subject Distance Range : Unknown
              Image Unique ID : OAEL01
              GPS Time Stamp : 19:25:27
              GPS Date Stamp : 2013:02:24
              Compression : JPEG (old-style)
              Thumbnail Offset : 2143
              Thumbnail Length : 10941
              Image Width : 1944
              Image Height : 2592
              Encoding Process : Baseline DCT, Huffman coding
              Bits Per Sample : 8
              Color Components : 3
              Y Cb Cr Sub Sampling : YCbCr4:2:0 (2 2)
              Aperture : 2.8
              GPS Date/Time : 2013:02:24 19:25:27Z
              Image Size : 1944x2592
              Shutter Speed : 1/354
              Thumbnail Image : (Binary data 10941 bytes, use -b option to extract)
              Focal Length : 3.4 mm
              Light Value : 12.4


              After:



              ExifTool Version Number         : 8.60
              File Name : my_photo.jpg
              Directory : /tmp
              File Size : 2.9 MB
              File Modification Date/Time : 2013:02:24 12:21:39-08:00
              File Permissions : rw-rw-r--
              File Type : JPEG
              MIME Type : image/jpeg
              Image Width : 1944
              Image Height : 2592
              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 : 1944x2592


              References:




              • http://www.mattcutts.com/blog/howto-strip-jpeg-metadata/

              • http://hacktux.com/read/remove/exif

              • http://www.sno.phy.queensu.ca/~phil/exiftool/exiftool_pod.html






              share|improve this answer

















              • 1




                To process all files in the current directory: for f in *.jpg; do exiftool -all= "$f"; done
                – twobeers
                Jun 23 '14 at 9:38








              • 5




                or just exiftool *.jpg
                – gavenkoa
                Oct 23 '14 at 16:22














              68












              68








              68






              Install exiftool:



              sudo apt-get install libimage-exiftool-perl


              To read photo metadata:



              exiftool /tmp/my_photo.jpg


              To erase photo metadata:



              exiftool -all= /tmp/my_photo.jpg


              Before:



              ExifTool Version Number         : 8.60
              File Name : my_photo.jpg
              Directory : /tmp
              File Size : 3.0 MB
              File Modification Date/Time : 2013:02:24 12:08:10-08:00
              File Permissions : rw-rw-r--
              File Type : JPEG
              MIME Type : image/jpeg
              Exif Byte Order : Big-endian (Motorola, MM)
              Orientation : Unknown (0)
              Y Cb Cr Positioning : Centered
              X Resolution : 72
              Y Resolution : 72
              Resolution Unit : inches
              Modify Date : 2013:02:24 11:25:27
              Make : Samsung
              Camera Model Name : Galaxy Nexus
              Exif Version : 0220
              Flashpix Version :
              Color Space : sRGB
              Components Configuration : Y, Cb, Cr, -
              Compressed Bits Per Pixel : 0
              Exif Image Width : 1944
              Exif Image Height : 2592
              Date/Time Original : 2013:02:24 11:25:27
              Create Date : 2013:02:24 11:25:27
              Exposure Time : 1/354
              F Number : 2.8
              Exposure Program : Aperture-priority AE
              ISO : 50, 0, 0
              Shutter Speed Value : 1/353
              Aperture Value : 2.6
              Brightness Value : 0
              Exposure Compensation : 0
              Max Aperture Value : 2.6
              Subject Distance : 0 m
              Metering Mode : Multi-spot
              Light Source : Daylight
              Flash : No Flash
              Focal Length : 3.4 mm
              Flash Energy : 0
              Exposure Index : undef
              Sensing Method : One-chip color area
              Scene Type : Directly photographed
              Custom Rendered : Custom
              Exposure Mode : Auto
              White Balance : Auto
              Digital Zoom Ratio : 1
              Scene Capture Type : Standard
              Contrast : Normal
              Saturation : Normal
              Sharpness : Normal
              Subject Distance Range : Unknown
              Image Unique ID : OAEL01
              GPS Time Stamp : 19:25:27
              GPS Date Stamp : 2013:02:24
              Compression : JPEG (old-style)
              Thumbnail Offset : 2143
              Thumbnail Length : 10941
              Image Width : 1944
              Image Height : 2592
              Encoding Process : Baseline DCT, Huffman coding
              Bits Per Sample : 8
              Color Components : 3
              Y Cb Cr Sub Sampling : YCbCr4:2:0 (2 2)
              Aperture : 2.8
              GPS Date/Time : 2013:02:24 19:25:27Z
              Image Size : 1944x2592
              Shutter Speed : 1/354
              Thumbnail Image : (Binary data 10941 bytes, use -b option to extract)
              Focal Length : 3.4 mm
              Light Value : 12.4


              After:



              ExifTool Version Number         : 8.60
              File Name : my_photo.jpg
              Directory : /tmp
              File Size : 2.9 MB
              File Modification Date/Time : 2013:02:24 12:21:39-08:00
              File Permissions : rw-rw-r--
              File Type : JPEG
              MIME Type : image/jpeg
              Image Width : 1944
              Image Height : 2592
              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 : 1944x2592


              References:




              • http://www.mattcutts.com/blog/howto-strip-jpeg-metadata/

              • http://hacktux.com/read/remove/exif

              • http://www.sno.phy.queensu.ca/~phil/exiftool/exiftool_pod.html






              share|improve this answer












              Install exiftool:



              sudo apt-get install libimage-exiftool-perl


              To read photo metadata:



              exiftool /tmp/my_photo.jpg


              To erase photo metadata:



              exiftool -all= /tmp/my_photo.jpg


              Before:



              ExifTool Version Number         : 8.60
              File Name : my_photo.jpg
              Directory : /tmp
              File Size : 3.0 MB
              File Modification Date/Time : 2013:02:24 12:08:10-08:00
              File Permissions : rw-rw-r--
              File Type : JPEG
              MIME Type : image/jpeg
              Exif Byte Order : Big-endian (Motorola, MM)
              Orientation : Unknown (0)
              Y Cb Cr Positioning : Centered
              X Resolution : 72
              Y Resolution : 72
              Resolution Unit : inches
              Modify Date : 2013:02:24 11:25:27
              Make : Samsung
              Camera Model Name : Galaxy Nexus
              Exif Version : 0220
              Flashpix Version :
              Color Space : sRGB
              Components Configuration : Y, Cb, Cr, -
              Compressed Bits Per Pixel : 0
              Exif Image Width : 1944
              Exif Image Height : 2592
              Date/Time Original : 2013:02:24 11:25:27
              Create Date : 2013:02:24 11:25:27
              Exposure Time : 1/354
              F Number : 2.8
              Exposure Program : Aperture-priority AE
              ISO : 50, 0, 0
              Shutter Speed Value : 1/353
              Aperture Value : 2.6
              Brightness Value : 0
              Exposure Compensation : 0
              Max Aperture Value : 2.6
              Subject Distance : 0 m
              Metering Mode : Multi-spot
              Light Source : Daylight
              Flash : No Flash
              Focal Length : 3.4 mm
              Flash Energy : 0
              Exposure Index : undef
              Sensing Method : One-chip color area
              Scene Type : Directly photographed
              Custom Rendered : Custom
              Exposure Mode : Auto
              White Balance : Auto
              Digital Zoom Ratio : 1
              Scene Capture Type : Standard
              Contrast : Normal
              Saturation : Normal
              Sharpness : Normal
              Subject Distance Range : Unknown
              Image Unique ID : OAEL01
              GPS Time Stamp : 19:25:27
              GPS Date Stamp : 2013:02:24
              Compression : JPEG (old-style)
              Thumbnail Offset : 2143
              Thumbnail Length : 10941
              Image Width : 1944
              Image Height : 2592
              Encoding Process : Baseline DCT, Huffman coding
              Bits Per Sample : 8
              Color Components : 3
              Y Cb Cr Sub Sampling : YCbCr4:2:0 (2 2)
              Aperture : 2.8
              GPS Date/Time : 2013:02:24 19:25:27Z
              Image Size : 1944x2592
              Shutter Speed : 1/354
              Thumbnail Image : (Binary data 10941 bytes, use -b option to extract)
              Focal Length : 3.4 mm
              Light Value : 12.4


              After:



              ExifTool Version Number         : 8.60
              File Name : my_photo.jpg
              Directory : /tmp
              File Size : 2.9 MB
              File Modification Date/Time : 2013:02:24 12:21:39-08:00
              File Permissions : rw-rw-r--
              File Type : JPEG
              MIME Type : image/jpeg
              Image Width : 1944
              Image Height : 2592
              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 : 1944x2592


              References:




              • http://www.mattcutts.com/blog/howto-strip-jpeg-metadata/

              • http://hacktux.com/read/remove/exif

              • http://www.sno.phy.queensu.ca/~phil/exiftool/exiftool_pod.html







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Feb 24 '13 at 20:24









              klenwell

              1,44431825




              1,44431825








              • 1




                To process all files in the current directory: for f in *.jpg; do exiftool -all= "$f"; done
                – twobeers
                Jun 23 '14 at 9:38








              • 5




                or just exiftool *.jpg
                – gavenkoa
                Oct 23 '14 at 16:22














              • 1




                To process all files in the current directory: for f in *.jpg; do exiftool -all= "$f"; done
                – twobeers
                Jun 23 '14 at 9:38








              • 5




                or just exiftool *.jpg
                – gavenkoa
                Oct 23 '14 at 16:22








              1




              1




              To process all files in the current directory: for f in *.jpg; do exiftool -all= "$f"; done
              – twobeers
              Jun 23 '14 at 9:38






              To process all files in the current directory: for f in *.jpg; do exiftool -all= "$f"; done
              – twobeers
              Jun 23 '14 at 9:38






              5




              5




              or just exiftool *.jpg
              – gavenkoa
              Oct 23 '14 at 16:22




              or just exiftool *.jpg
              – gavenkoa
              Oct 23 '14 at 16:22













              7














              Imagemagick



              Instead of Exiftool I found more useful and command more easy to remember using Imagemagick:



              To read



              identify -verbose myphoto.jpg | grep exif


              To remove



              With imagemagick package installed you can do this (not only for JPEGs):



              mogrify -strip *.jpg


              From manual:




              -strip



              strip the image of any profiles, comments or these PNG chunks: bKGD,cHRM,EXIF,gAMA,iCCP,iTXt,sRGB,tEXt,zCCP,zTXt,date.




              AFAIK the only difference is that mogrify won't remove this metadata:




              • JFIF Version

              • Resolution Unit

              • X Resolution

              • Y Resolution


              Which I found useful. Compared with diff -y <(exiftool wMogrify.jpg) <(exiftool wExiftool.jpg)





              If you prefer Exiftool you might found useful creating an alias to exiftool -all= *.jpg && rm *original.



              Another alternative (only for JPEGs) is jhead.






              share|improve this answer




























                7














                Imagemagick



                Instead of Exiftool I found more useful and command more easy to remember using Imagemagick:



                To read



                identify -verbose myphoto.jpg | grep exif


                To remove



                With imagemagick package installed you can do this (not only for JPEGs):



                mogrify -strip *.jpg


                From manual:




                -strip



                strip the image of any profiles, comments or these PNG chunks: bKGD,cHRM,EXIF,gAMA,iCCP,iTXt,sRGB,tEXt,zCCP,zTXt,date.




                AFAIK the only difference is that mogrify won't remove this metadata:




                • JFIF Version

                • Resolution Unit

                • X Resolution

                • Y Resolution


                Which I found useful. Compared with diff -y <(exiftool wMogrify.jpg) <(exiftool wExiftool.jpg)





                If you prefer Exiftool you might found useful creating an alias to exiftool -all= *.jpg && rm *original.



                Another alternative (only for JPEGs) is jhead.






                share|improve this answer


























                  7












                  7








                  7






                  Imagemagick



                  Instead of Exiftool I found more useful and command more easy to remember using Imagemagick:



                  To read



                  identify -verbose myphoto.jpg | grep exif


                  To remove



                  With imagemagick package installed you can do this (not only for JPEGs):



                  mogrify -strip *.jpg


                  From manual:




                  -strip



                  strip the image of any profiles, comments or these PNG chunks: bKGD,cHRM,EXIF,gAMA,iCCP,iTXt,sRGB,tEXt,zCCP,zTXt,date.




                  AFAIK the only difference is that mogrify won't remove this metadata:




                  • JFIF Version

                  • Resolution Unit

                  • X Resolution

                  • Y Resolution


                  Which I found useful. Compared with diff -y <(exiftool wMogrify.jpg) <(exiftool wExiftool.jpg)





                  If you prefer Exiftool you might found useful creating an alias to exiftool -all= *.jpg && rm *original.



                  Another alternative (only for JPEGs) is jhead.






                  share|improve this answer














                  Imagemagick



                  Instead of Exiftool I found more useful and command more easy to remember using Imagemagick:



                  To read



                  identify -verbose myphoto.jpg | grep exif


                  To remove



                  With imagemagick package installed you can do this (not only for JPEGs):



                  mogrify -strip *.jpg


                  From manual:




                  -strip



                  strip the image of any profiles, comments or these PNG chunks: bKGD,cHRM,EXIF,gAMA,iCCP,iTXt,sRGB,tEXt,zCCP,zTXt,date.




                  AFAIK the only difference is that mogrify won't remove this metadata:




                  • JFIF Version

                  • Resolution Unit

                  • X Resolution

                  • Y Resolution


                  Which I found useful. Compared with diff -y <(exiftool wMogrify.jpg) <(exiftool wExiftool.jpg)





                  If you prefer Exiftool you might found useful creating an alias to exiftool -all= *.jpg && rm *original.



                  Another alternative (only for JPEGs) is jhead.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Dec 26 at 3:30

























                  answered Oct 24 '17 at 14:37









                  Pablo Bianchi

                  2,3571528




                  2,3571528























                      5














                      To remove then change a single field we can use this command:



                      root@kurawa:~# exiftool -Copyright= IMG_3357.jpg
                      root@kurawa:~# exiftool -Copyright=LinuxSlaves IMG_3357.jpg


                      Reference: http://www.linuxslaves.com/2015/05/view-and-manipulate-exif-metadata-image.html






                      share|improve this answer




























                        5














                        To remove then change a single field we can use this command:



                        root@kurawa:~# exiftool -Copyright= IMG_3357.jpg
                        root@kurawa:~# exiftool -Copyright=LinuxSlaves IMG_3357.jpg


                        Reference: http://www.linuxslaves.com/2015/05/view-and-manipulate-exif-metadata-image.html






                        share|improve this answer


























                          5












                          5








                          5






                          To remove then change a single field we can use this command:



                          root@kurawa:~# exiftool -Copyright= IMG_3357.jpg
                          root@kurawa:~# exiftool -Copyright=LinuxSlaves IMG_3357.jpg


                          Reference: http://www.linuxslaves.com/2015/05/view-and-manipulate-exif-metadata-image.html






                          share|improve this answer














                          To remove then change a single field we can use this command:



                          root@kurawa:~# exiftool -Copyright= IMG_3357.jpg
                          root@kurawa:~# exiftool -Copyright=LinuxSlaves IMG_3357.jpg


                          Reference: http://www.linuxslaves.com/2015/05/view-and-manipulate-exif-metadata-image.html







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited May 25 '15 at 10:24









                          Jens Erat

                          4,11972031




                          4,11972031










                          answered May 25 '15 at 9:14









                          Andre Petkova

                          5111




                          5111






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Ask Ubuntu!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f260810%2fhow-can-i-read-and-remove-meta-exif-data-from-my-photos-using-the-command-line%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              數位音樂下載

                              When can things happen in Etherscan, such as the picture below?

                              格利澤436b