Exiftool: mudanças entre as edições

De Pontão Nós Digitais
Ir para navegaçãoIr para pesquisar
Sem resumo de edição
Sem resumo de edição
 
(14 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 1: Linha 1:
[[image:Exiftool.png|500px|thumb|right|Documentação do [http://www.sno.phy.queensu.ca/~phil/exiftool/ exiftool] presente no [[man]] ]]


== Comandos ==
'''Exiftool''' é um software de linha de comando baseado na biblioteca em perl [http://www.sno.phy.queensu.ca/~phil/exiftool/ExifTool.html Image::ExifTool] que pode ser usado para ler e escrever meta informações em diversos tipos de arquivo. A palavra '''FILE''', na documentação do software, se refere a um ou mais fontes de arquivos, diretórios ou formatos de saida padrão. Os metadados, na interação com o exiftool, são lidos de arquivos-fonte e são impresssos tanto na tela do console como em arquivos de texto delimitados.


* Impressão de meta informações das fotos
Para escrever, modificar ou deletar metadados, são utilizadas tags de referência cuja atribuição de valores se dá pela seguinte sintaxe: '''-TAG=[VALUE]'''. Para copiar ou mover metadados, a tag '''-tagsFromFile''' é utilizada. Por padrão, os arquivos originais são preservados. O software gera um novo arquivos com as modificações e o original é preservado com o acréscimo do termo '''_original''' junto ao nome do arquivo. Esteja certo de que os arquivos modificados estão corretos antes de apagar os originais. Uma vez em modo de escrita, o exiftool irá ignonar qualquer opção de leitura.  
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


* Impressão de informação 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".
Nota: se a palavra FILE for um nome de diretório, então somente os tipos de arquivo suportados são processados (no modo de escrita só "tipos graváveis" são processados). No entanto, os arquivos podem ser especificados pelo nome, ou a opção -ext pode ser usada para forçar o processamento de arquivos com qualquer extensão.
  exiftool -common dir
----


Abaixo há uma lista de tipos de arquivos e formatos de metadados atualmente suportadas pelo ExifTool (na legenda abaixo: r = leitura, w = escrita, c = criação):


* List specified meta information in tab-delimited column form for all images in dir to an output text file named "out.txt".


   exiftool -T -createdate -aperture -shutterspeed -iso dir > out.txt
   '''''Tipos de arquivos lidos por padrão pelo exiftool'''''
  ------------+-------------------+-------------+-------------+------------
  '''3FR'''  r    | '''DVB'''  r/w  | KDC  r    | OGG  r    | RSRC  r
  '''3G2'''  r/w  | '''DYLIB''' r    | KEY  r    | OGV  r    | RTF  r
  '''3GP'''  r/w  | '''EIP'''  r    | LA    r    | ORF  r/w  | RW2  r/w
  '''AA'''    r    | EPS  r/w  | LFP  r    | OTF  r    | RWL  r/w
  '''AAX'''  r/w  | EPUB  r    | LNK  r    | PAC  r    | RWZ  r
  '''ACR'''  r    | ERF  r/w  | M2TS  r    | PAGES r    | RM    r
  '''AFM'''  r    | EXE  r    | M4A/V r/w  | PBM  r/w  | SEQ  r
  '''AI'''    r/w  | EXIF  r/w/c | MEF  r/w  | PCD  r    | SO    r
  '''AIFF'''  r    | EXR  r    | MIE  r/w/c | PDB  r    | SR2  r/w
  '''APE'''  r    | EXV  r/w/c | MIFF  r    | PDF  r/w  | SRF  r
  '''ARW'''  r/w  | F4A/V r/w  | MKA  r    | PEF  r/w  | SRW  r/w
  '''ASF'''  r    | FFF  r/w  | MKS  r    | PFA  r    | SVG  r
  '''AVI'''  r    | FLA  r    | MKV  r    | PFB  r    | SWF  r
  '''AZ'''W  r    | FLAC  r    | MNG  r/w  | PFM  r    | THM  r/w
  '''BMP'''  r    | FLV  r    | MOBI  r    | PGF  r    | TIFF  r/w
  '''BTF'''  r    | FPF  r    | MODD  r    | PGM  r/w  | TORRENT r
  '''CHM'''  r    | FPX  r    | MOI  r    | PLIST r    | TTC  r
  '''COS'''  r    | GIF  r/w  | MOS  r/w  | PICT  r    | TTF  r
  '''CR2'''  r/w  | GZ    r    | MOV  r/w  | PMP  r    | VCF  r
  '''CRW'''  r/w  | HDP  r/w  | MP3  r    | PNG  r/w  | VRD  r/w/c
  '''CS1'''  r/w  | HDR  r    | MP4  r/w  | PPM  r/w  | VSD  r
  '''DCM'''  r    | HTML  r    | MPC  r    | PPT  r    | WAV  r
  '''DCP'''  r/w  | ICC  r/w/c | MPG  r    | PPTX  r    | WDP  r/w
  '''DCR'''  r    | ICS  r    | MPO  r/w  | PS    r/w  | WEBP  r
  '''DFONT''' r    | IDML  r    | MQV  r/w  | PSB  r/w  | WEBM  r
  '''DIVX'''  r    | IIQ  r/w  | MRW  r/w  | PSD  r/w  | WMA  r
  '''DJVU'''  r    | IND  r/w  | MXF  r    | PSP  r    | WMV  r
  '''DLL'''  r    | INX  r    | NEF  r/w  | QTIF  r/w  | WV    r
  '''DNG'''  r/w  | ITC  r    | NRW  r/w  | RA    r    | X3F  r/w
  '''DOC'''  r    | J2C  r    | NUMBERS r  | RAF  r/w  | XCF  r
  '''DOCX'''  r    | JNG  r/w  | ODP  r    | RAM  r    | XLS  r
  '''DPX'''  r    | JP2  r/w  | ODS  r    | RAR  r    | XLSX  r
  '''DR4'''  r/w/c | JPEG  r/w  | ODT  r    | RAW  r/w  | XMP  r/w/c
  '''DV'''    r    | K25  r    | OFR  r    | RIFF  r    | ZIP  r




* Print ImageSize and ExposureTime tag names and values.
  '''''Metadados que podem ser criados, lidos ou editados'''''
   exiftool -s -ImageSize -ExposureTime b.jpg
   ----------------------+----------------------+---------------------
  EXIF          r/w/c  |  CIFF          r/w  |  Ricoh RMETA    r
  GPS            r/w/c  |  AFCP          r/w  |  Picture Info  r
  IPTC          r/w/c  |  Kodak Meta    r/w  |  Adobe APP14    r
  XMP            r/w/c  |  FotoStation    r/w  |  MPF            r
  MakerNotes    r/w/c  |  PhotoMechanic  r/w  |  Stim          r
  Photoshop IRB  r/w/c  |  JPEG 2000      r    |  DPX            r
  ICC Profile    r/w/c  |  DICOM          r    |  APE            r
  MIE            r/w/c  |  Flash          r    |  Vorbis        r
  JFIF          r/w/c  |  FlashPix      r    |  SPIFF          r
  Ducky APP12    r/w/c  |  QuickTime      r    |  DjVu          r
  PDF            r/w/c  |  Matroska      r    |  M2TS          r
  PNG            r/w/c  |  MXF            r    |  PE/COFF        r
  Canon VRD      r/w/c  |  PrintIM        r    |  AVCHD          r
  Nikon Capture  r/w/c  |  FLAC          r    |  ZIP            r
  GeoTIFF        r/w/c  |  ID3            r    |  (and more)


== Instalação ==


* http://www.sno.phy.queensu.ca/~phil/exiftool/install.html#Unix


* Print standard Canon information from two image files.
== Tutoriais ==
  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 - comandos de leitura e impressão]]
  exiftool -icc_profile -b -w icc image.jpg
* [[exiftool - comandos de escrita]]
 
* 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
 
 
== Instalação ==
 
* http://www.sno.phy.queensu.ca/~phil/exiftool/install.html#Unix


== Referências ==
== Referências ==
* http://www.sno.phy.queensu.ca/~phil/exiftool/exiftool_pod.html#reading_examples
* http://www.sno.phy.queensu.ca/~phil/exiftool/exiftool_pod.html#reading_examples


[[Category: exiftool]]
[[Category: gráfico]]
[[Category: gráfico]]

Edição atual tal como às 12h44min de 19 de junho de 2015

Documentação do exiftool presente no man

Exiftool é um software de linha de comando baseado na biblioteca em perl Image::ExifTool que pode ser usado para ler e escrever meta informações em diversos tipos de arquivo. A palavra FILE, na documentação do software, se refere a um ou mais fontes de arquivos, diretórios ou formatos de saida padrão. Os metadados, na interação com o exiftool, são lidos de arquivos-fonte e são impresssos tanto na tela do console como em arquivos de texto delimitados.

Para escrever, modificar ou deletar metadados, são utilizadas tags de referência cuja atribuição de valores se dá pela seguinte sintaxe: -TAG=[VALUE]. Para copiar ou mover metadados, a tag -tagsFromFile é utilizada. Por padrão, os arquivos originais são preservados. O software gera um novo arquivos com as modificações e o original é preservado com o acréscimo do termo _original junto ao nome do arquivo. Esteja certo de que os arquivos modificados estão corretos antes de apagar os originais. Uma vez em modo de escrita, o exiftool irá ignonar qualquer opção de leitura.


Nota: se a palavra FILE for um nome de diretório, então somente os tipos de arquivo suportados são processados (no modo de escrita só "tipos graváveis" são processados). No entanto, os arquivos podem ser especificados pelo nome, ou a opção -ext pode ser usada para forçar o processamento de arquivos com qualquer extensão.


Abaixo há uma lista de tipos de arquivos e formatos de metadados atualmente suportadas pelo ExifTool (na legenda abaixo: r = leitura, w = escrita, c = criação):


 Tipos de arquivos lidos por padrão pelo exiftool
 ------------+-------------------+-------------+-------------+------------
 3FR   r     | DVB   r/w   | KDC   r     | OGG   r     | RSRC  r
 3G2   r/w   | DYLIB r     | KEY   r     | OGV   r     | RTF   r
 3GP   r/w   | EIP   r     | LA    r     | ORF   r/w   | RW2   r/w
 AA    r     | EPS   r/w   | LFP   r     | OTF   r     | RWL   r/w
 AAX   r/w   | EPUB  r     | LNK   r     | PAC   r     | RWZ   r
 ACR   r     | ERF   r/w   | M2TS  r     | PAGES r     | RM    r
 AFM   r     | EXE   r     | M4A/V r/w   | PBM   r/w   | SEQ   r
 AI    r/w   | EXIF  r/w/c | MEF   r/w   | PCD   r     | SO    r
 AIFF  r     | EXR   r     | MIE   r/w/c | PDB   r     | SR2   r/w
 APE   r     | EXV   r/w/c | MIFF  r     | PDF   r/w   | SRF   r
 ARW   r/w   | F4A/V r/w   | MKA   r     | PEF   r/w   | SRW   r/w
 ASF   r     | FFF   r/w   | MKS   r     | PFA   r     | SVG   r
 AVI   r     | FLA   r     | MKV   r     | PFB   r     | SWF   r
 AZW   r     | FLAC  r     | MNG   r/w   | PFM   r     | THM   r/w
 BMP   r     | FLV   r     | MOBI  r     | PGF   r     | TIFF  r/w
 BTF   r     | FPF   r     | MODD  r     | PGM   r/w   | TORRENT r
 CHM   r     | FPX   r     | MOI   r     | PLIST r     | TTC   r
 COS   r     | GIF   r/w   | MOS   r/w   | PICT  r     | TTF   r
 CR2   r/w   | GZ    r     | MOV   r/w   | PMP   r     | VCF   r
 CRW   r/w   | HDP   r/w   | MP3   r     | PNG   r/w   | VRD   r/w/c
 CS1   r/w   | HDR   r     | MP4   r/w   | PPM   r/w   | VSD   r
 DCM   r     | HTML  r     | MPC   r     | PPT   r     | WAV   r
 DCP   r/w   | ICC   r/w/c | MPG   r     | PPTX  r     | WDP   r/w
 DCR   r     | ICS   r     | MPO   r/w   | PS    r/w   | WEBP  r
 DFONT r     | IDML  r     | MQV   r/w   | PSB   r/w   | WEBM  r
 DIVX  r     | IIQ   r/w   | MRW   r/w   | PSD   r/w   | WMA   r
 DJVU  r     | IND   r/w   | MXF   r     | PSP   r     | WMV   r
 DLL   r     | INX   r     | NEF   r/w   | QTIF  r/w   | WV    r
 DNG   r/w   | ITC   r     | NRW   r/w   | RA    r     | X3F   r/w
 DOC   r     | J2C   r     | NUMBERS r   | RAF   r/w   | XCF   r
 DOCX  r     | JNG   r/w   | ODP   r     | RAM   r     | XLS   r
 DPX   r     | JP2   r/w   | ODS   r     | RAR   r     | XLSX  r
 DR4   r/w/c | JPEG  r/w   | ODT   r     | RAW   r/w   | XMP   r/w/c
 DV    r     | K25   r     | OFR   r     | RIFF  r     | ZIP   r


 Metadados que podem ser criados, lidos ou editados
 ----------------------+----------------------+---------------------
 EXIF           r/w/c  |  CIFF           r/w  |  Ricoh RMETA    r
 GPS            r/w/c  |  AFCP           r/w  |  Picture Info   r
 IPTC           r/w/c  |  Kodak Meta     r/w  |  Adobe APP14    r
 XMP            r/w/c  |  FotoStation    r/w  |  MPF            r
 MakerNotes     r/w/c  |  PhotoMechanic  r/w  |  Stim           r
 Photoshop IRB  r/w/c  |  JPEG 2000      r    |  DPX            r
 ICC Profile    r/w/c  |  DICOM          r    |  APE            r
 MIE            r/w/c  |  Flash          r    |  Vorbis         r
 JFIF           r/w/c  |  FlashPix       r    |  SPIFF          r
 Ducky APP12    r/w/c  |  QuickTime      r    |  DjVu           r
 PDF            r/w/c  |  Matroska       r    |  M2TS           r
 PNG            r/w/c  |  MXF            r    |  PE/COFF        r
 Canon VRD      r/w/c  |  PrintIM        r    |  AVCHD          r
 Nikon Capture  r/w/c  |  FLAC           r    |  ZIP            r
 GeoTIFF        r/w/c  |  ID3            r    |  (and more)

Instalação

Tutoriais

Referências