LaoBlog

Exiftool per cancellare i metadati delle fotografie


Exiftool è disponibile per tutte le maggiori distribuzioni Linux.Esso permette di rimuovere uono o più metadati di una fotografia, come la data, li tipo di apparecchio fotografico, la geolocalizzazione, l'uso del flash, l'apertura focale ecc.Per cancellarli tutti si usa il comando:# exiftool -all= /nomedirectory/nomefile.jpgOvviamente si può utilizzare anche con immagini di formato diverso, png, raw, ecc.Di seguito alcuni esempi tratti dal sito http://owl.phy.queensu.ca/~phil/exiftool/examples.html :0) Extract information from a fileexiftool a.jpgA basic command to extract all metadata from a file named a.jpg. 1) Basic write exampleexiftool -artist=me a.jpgWrites Artist tag to a.jpg. Since no group is specified, EXIF:Artist will be written and all other existing Artist tags will be updated with the new value ("me"). 2) Write multiple filesexiftool -artist=me a.jpg b.jpg c.jpgWrites Artist tag to three image files. 3) Write to all files in a directoryexiftool -artist=me /tmp/imagesWrites Artist tag to all files in directory /tmp/images. 4) Write multiple tagsexiftool -artist="Phil Harvey" -copyright="2011 Phil Harvey" a.jpgWrites two tags to a.jpg. 5) Extracting duplicate tagsexiftool -a -u -g1 a.jpgPrint all meta information in an image, including duplicate and unknown tags, sorted by group (for family 1). 6) undefinedexiftool -common dirPrint common meta information for all images in dir. 7) undefinedexiftool -T -createdate -aperture -shutterspeed -iso DIR > out.txtList meta information in tab-delimited column form for all images in directory DIR to an output text file named "out.txt". 8) undefinedexiftool -s -ImageSize -ExposureTime b.jpgPrint ImageSize and ExposureTime tag names and values. 9) undefinedexiftool -l -canon c.jpg d.jpgPrint standard Canon information from two image files. 10) undefinedexiftool -r -w .txt -common picturesRecursively extract common meta information from files in C directory, writing text output into files with the same names but with a C<.txt> extension. 11) undefinedexiftool -b -ThumbnailImage image.jpg > thumbnail.jpgSave thumbnail image from C to a file called C. 12) undefinedexiftool -b -JpgFromRaw -w _JFR.JPG -ext CRW -r .Recursively extract JPG image from all Canon CRW files in the current directory, adding C<_JFR.JPG> for the name of the output JPG files. 13) undefinedexiftool -d "%r %a, %B %e, %Y" -DateTimeOriginal -S -s *.jpgPrint formatted date/time for all JPG files in the current directory. 14) undefinedexiftool -IFD1:XResolution -IFD1:YResolution image.jpgExtract image resolution from EXIF IFD1 information (thumbnail image IFD). 15) undefinedexiftool "-*resolution*" image.jpgExtract all tags with names containing the word "Resolution" from an image. 16) undefinedexiftool -xmp:author:all -a image.jpgExtract all author-related XMP information from an image. 17) undefinedexiftool -xmp -b a.jpg > out.xmpExtract complete XMP data record intact from a.jpg and write it to out.xmp using the special XMP tag (see the Extra Tags). 19) undefinedexiftool -p '$filename has date $dateTimeOriginal' -q -f dirPrint one line of output containing the file name and DateTimeOriginal for each image in directory dir. 21) undefinedexiftool -ee -p '$gpslatitude, $gpslongitude, $gpstimestamp' a.m2tsExtract all GPS positions from an AVCHD video. 22) undefinedexiftool -icc_profile -b -w icc image.jpgSave complete ICC_Profile from an image to an output file with the same name and an extension of C<.icc>. 23) undefined exiftool -htmldump -w tmp/%f_%e.html t/imagesGenerate HTML pages from a hex dump of EXIF information in all images from the C directory. The output HTML files are written to the C directory (which is created if it didn't exist), with names of the form "FILENAME_EXT.html"