Exiftool - comandos de leitura e impressão

De Pontão Nós Digitais
Revisão de 18h28min de 31 de julho de 2015 por Felipecabral (discussão | contribs)
(dif) ← Edição anterior | Revisão atual (dif) | Versão posterior → (dif)
Ir para navegaçãoIr para pesquisar
  • Impressão de meta informações das fotos

Imprime na tela todas as meta informações de uma imagem, incluindo tags duplicadas ou desconhecidas. A saída das informações saí subdividida em grupos (Para exif familia 1).

 exiftool -a -u -g1 foto.jpg
  • Como saber o nome "lógico" de determinada tag para aplicar no comando? Veja uma foto:
 exiftool -s image.jpg
  • Mudar modelo da câmera
 exiftool -Model='Pentax 645n' foto1.jpg
  • Impressão de meta informação de diretórios

Imprime meta informações comuns de todas as imagens em um determinado diretório. A opção -common é uma abreviação que representa "common EXIF meta information".

 exiftool -common dir
  • Lista meta informações específicas em uma tabela de colunas delimitadas. Funciona para todas as imagens em um diretório e gera uma saída para um arquivo de texto.
 exiftool -T -createdate -aperture -shutterspeed -iso /endereco/do/diretorio/imagem.jpg > meta-informacoes.txt
  • Imprime o tamanho da imagem (Tag ImageSize) e o tempo de exposição (tag ExposureTime) com nomes e valores.
 exiftool -s -ImageSize -ExposureTime b.jpg
  • Print standard Canon information from two image files.
 exiftool -l -canon c.jpg d.jpg
  • Recursively extract common meta information from files in pictures directory, writing text output to .txt files with the same names.
 exiftool -r -w .txt -common pictures


  • Save thumbnail image from image.jpg to a file called thumbnail.jpg.
 exiftool -b -ThumbnailImage image.jpg > thumbnail.jpg


  • Recursively extract JPG image from all Nikon NEF files in the current directory, adding _JFR.JPG for the name of the output JPG files.
 exiftool -b -JpgFromRaw -w _JFR.JPG -ext NEF -r .


  • Extract all types of preview images (ThumbnailImage, PreviewImage, JpgFromRaw, etc.) from files in directory "dir", adding the tag name to the output preview image file names.
 exiftool -a -b -W %d%f_%t%-c.%s -preview:all dir


  • Print formatted date/time for all JPG files in the current directory.
 exiftool -d '%r %a, %B %e, %Y' -DateTimeOriginal -S -s -ext jpg .


  • Extract image resolution from EXIF IFD1 information (thumbnail image IFD).
 exiftool -IFD1:XResolution -IFD1:YResolution image.jpg


  • Extract all tags with names containing the word "Resolution" from an image.
 exiftool '-*resolution*' image.jpg


  • Extract all author-related XMP information from an image.
 exiftool -xmp:author:all -a image.jpg


  • Extract complete XMP data record intact from a.jpg and write it to out.xmp using the special XMP tag (see the Extra tags in Image::ExifTool::TagNames).
 exiftool -xmp -b a.jpg > out.xmp


  • Print one line of output containing the file name and DateTimeOriginal for each image in directory dir.
 exiftool -p '$filename has date $dateTimeOriginal' -q -f dir


  • Extract all GPS positions from an AVCHD video.
 exiftool -ee -p '$gpslatitude, $gpslongitude, $gpstimestamp' a.m2ts


  • Save complete ICC_Profile from an image to an output file with the same name and an extension of .icc.
 exiftool -icc_profile -b -w icc image.jpg
  • Generate HTML pages from a hex dump of EXIF information in all images from the t/images directory. The output HTML files are written to the tmp directory (which is created if it didn't exist), with names of the form 'FILENAME_EXT.html'.
 exiftool -htmldump -w tmp/%f_%e.html t/images


  • Extract embedded JPG and JP2 images from a PDF file. The output images will have file names like "Image_#.jpg" or "Image_#.jp2", where "#" is the ExifTool family 3 embedded document number for the image.
 exiftool -a -b -ee -embeddedimage -W Image_%.3g3.%s file.pdf