[Originally posted by flowi on 2007-07-13 11:28:10-07]
Hi!
I'd like to let exiftool generate a textfile filled with metadata of all pictures in one folder.
Is this possible? This would be great, because I don't need to type in the LaTeX-Code for all of my pics by hand.
I hope, you don't think I'm lazy, but I have no idea how to realize that with exiftool.
Greetings from Germany,
Florian
If you need an expample, see the code below. I need the filename and comment at the right place.
Here is the template:
\begin{figure}
\centering
\begin{tabular}{c}
{
\includegraphics[width=197mm]{*FILENAME*}}\\
\multicolumn{1}{p{197mm}}{
\caption{*COMMENT*}
\label{fig:*FILENAME*}
}
\end{tabular}
\end{figure}
[Originally posted by exiftool on 2007-07-13 12:52:40-07]This is simple to do with the -p option:
First, create a text file (call it, say "p.txt") containing the following:
\begin{figure}
\centering
\begin{tabular}{c}
{
\includegraphics[width=197mm]{$filename}}\\
\multicolumn{1}{p{197mm}}{
\caption{$comment}
\label{fig:$filename}
}
\end{tabular}
\end{figure}
Then from the command line, do this:
exiftool -p p.txt DIR > file.out
Where DIR is the name of the directory containing the images. You can
also add a -r option to recurse into subdirectories.
After you run the command, "file.out" will contain your formatted output.
- Phil
[Originally posted by flowi on 2007-07-13 13:41:43-07]
Thanks for the great support! Works perfect!