.TH "" 1 "" "" .SH NAME .P pecomato \- a portable picture\-embedded metadata processor .SH SYNOPSIS .P \fBpecomato\fR [\fIOPTION\fR...] \fIOP\fR [\fIEXPR\fR] \fIFILE\fR [\fIFILE\fR...] .P \fBpecomato\fR [\fIOPTION\fR...] \fIOP\fR [\fIEXPR\fR] \fI@FILE\fR .P usage of form \fIOP\fR \fIEXPR\fR only concerns \fIOP\fR mode \fBdump\-value\fR, see below. .P use \fI@file\fR to read a list of files from that file. the file must contain exactly one filename to process per line (don't escape anything, filenames are taken as\-is). .SH DESCRIPTION .P \fBpecomato\fR is basically designed to display any kind of information embedded in picture files, as well as checking, filtering, extracting, removing, adding and fixing such information. In other words, it's a metadata processor. .P It supports the following file formats: \fIJPEG/JFIF\fR, \fIAdobe PSD\fR and \fIFFO\fR, raw \fIIPTC\fR. And it knows about the following metadata formats: \fIJFIF\fR, \fIIPTC\fR, \fIExif\fR, \fIAdobe\fR and Fotostation. More file and metadata formats might be supported later: \fITIFF\fR, etc. .P One of its main goals is to check the validity of parsed metadata as well as optionally check the strict compliance to official standards. On another hand, it aims to provide ways of fixing broken or not compliant chunks as well as providing general basic functions to manipulate the metadata. .P Please visit the program homepage at \fIhttp://www.mollux.org/projects/pecomato/\fR. Thanks for reporting issues at \fIhttps://www.mollux.org/services/bugzilla/\fR. .SH OPTIONS .P \fBgeneral options:\fR .TP \fB\-v\fR, \fB\-\-version\fR show version number then exit .TP \fB\-h\fR, \fB\-\-help\fR show this usage help then exit .TP \fB\-\-list\fR list all supported embedded data structures .TP \fB\-l\fR, \fB\-\-log\-level\fR \fINUM\fR define verbosity (see possible values below) .TP \fB\-c\fR, \fB\-\-check\-compliance\fR perform full checks to test the strict validity and compliance of structures to official formats .P \fBfiltering and extracting options:\fR .TP \fB\-b\fR, \fB\-\-backup\fR create backup files of (re)written files if necessary .TP \fB\-d\fR, \fB\-\-target\-dir\fR \fIDIRNAME\fR target directory for all written files .TP \fB\-f\fR, \fB\-\-fix\fR fix metadata inconsistencies when possible .P \fBextracting options:\fR .TP \fB\-x\fR, \fB\-\-extract\fR \fITYPE\fR extract and save metadata to a standalone file (see below for a list of metadata types that can be extracted) .TP \fB\-t\fR, \fB\-\-ext\fR \fIEXTENSION\fR define what filename extension to use when writing metadata that is extracted (default: \fI.iptc\fR) .TP \fB\-a\fR, \fB\-\-append\-ext\fR append extension to original filename when saving the extracted metadata (default: replace original file extension) .P \fBfiltering options:\fR .TP \fB\-i\fR, \fB\-\-include\fR \fIEXPR\fR a filter expression describing the datasets to keep .TP \fB\-i\fR, \fB\-\-include\fR \fI@FILE\fR or a file containing a list of datasets to keep, all other datasets will be filtered out. if not used, all datasets will be kept .TP \fB\-e\fR, \fB\-\-exclude\fR \fIEXPR\fR a filter expression describing the datasets to filter out .TP \fB\-e\fR, \fB\-\-exclude\fR \fI@FILE\fR a file containing a list of datasets to filter out, all other datasets will be kept. if not used all datasets will be kept .TP \fB\-\-edit\fR \fIEXPR\fR a filter edit expression describing the datasets to add .TP \fB\-\-edit\fR \fI@FILE\fR or a file containing a list of datasets to add. datasets won't be inserted if that breaks compliance to the standards .TP \fB\-\-test\fR don't override original file, create *.rewrite file. this option only affects rewriting of source files .P \fBdump options:\fR .TP \fB\-w\fR, \fB\-\-wrap\fR \fINUM\fR max column for wrapping (num must be in range [8\-1024]). default is to dump unwrapped .SH POSSIBLE OPS .TP \fBcheck\fR just check embedded data structures .TP \fBdump\fR show embedded data (headers only) .TP \fBdump\-full\fR show all embedded data (including values) .TP \fBdump\-value\fR show requested value (headers only) .TP \fBfilter\fR filter embedded data (see \fB\-i\fR, \fB\-e\fR and \fB\-\-edit\fR) .SH DUMP-VALUE EXPRESSIONS .TP IPTC. .P same as filter include/exclude expression, see below: .SH FILTER INCLUDE/EXCLUDE EXPRESSIONS .TP IPTC. .P where can be either: .TP all: * .TP hexadecimal unary: 0xhhhh .TP hexadecimal range: 0xhhhh\-0xhhhh .TP decimal unary: nnn:nnn .TP decimal ranges: nnn:nnn\-nnn .TP nnn:* .P \fBexamples:\fR .TP IPTC.0x0219 .TP IPTC.0x0300\-0x0364 .TP IPTC.3:0\-100 .SH FILTER EDIT EXPRESSIONS .TP IPTC.=: .P where can be either: .TP hexadecimal unary: 0xhhhh .TP decimal unary: nnn:nnn .P where can be either: .TP hex .TP text .P and is: .TP hex: [a\-zA\-Z0\-9] pairs .TP text: any char (even widechars) on the line is taken as text, until .TP a newline is found .P \fBexamples:\fR .TP IPTC.0x0200=hex:0002 .TP IPTC.0x0219=text:this is a keyword .SH SUPPORTED METADATA FOR EXTRACTION .TP \fBiptc\fR IPTC datasets .SH POSSIBLE LOG LEVELS .TP \fB0\fR quiet, no output at all .TP \fB1\fR error messages only (default) .TP \fB2\fR warning and error messages .TP \fB3\fR informative, warning and error messages .TP \fB4\fR all messages including debug ones .SH SUPPORTED INPUT FILES .TP \fBJPEG\fR files (commonly \fI.jpeg\fR, \fI.jpg\fR, \fI.jpe\fR, \fI.jfif\fR, \fI.jif\fR) .TP \fBAdobe Photoshop\fR files (commonly \fI.psd\fR, \fI.pdd\fR, \fI.ffo\fR) .TP \fBFotoStation\fR files (commonly .\fIfdp\fR, \fI.ipt\fR) .TP standalone \fBIPTC\fR metadata (commonly \fI.iptc\fR) .SH EXIT CODES .TP \fB0\fR normal exit .TP \fB1\fR usage error .TP \fB2\fR asynchronous signal termination .TP \fB3\fR normal exit, with warning(s) .TP \fB4\fR normal exit, with error(s) .TP \fB5\fR fatal error encountered .SH EXAMPLES .TP \fBCheck metadata structures of a JPEG file, only report errors\fR $ pecomato check file.jpg .SH AUTHOR .P Written by Tristan Chabredier \fI"wwp" \fR. .SH COPYRIGHT .P Copyright (C) 2005\-2007 Tristan Chabredier. .P This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. .P This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. .P You should have received a copy of the GNU General Public License along with this program. If not, see . .\" man code generated by txt2tags 2.4 (http://txt2tags.sf.net) .\" cmdline: txt2tags --no-rc -t man -i manpage.t2t -o .man/manpage.man