| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 5 | <title>The IPTC Command-Line Utility: libiptcdata Reference Manual</title> |
| 6 | <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> |
| 7 | <link rel="home" href="index.html" title="libiptcdata Reference Manual"> |
| 8 | <link rel="up" href="index.html" title="libiptcdata Reference Manual"> |
| 9 | <link rel="prev" href="iptc-about.html" title="About libiptcdata"> |
| 10 | <link rel="next" href="iptc-overview.html" title="libiptcdata Overview"> |
| 11 | <meta name="generator" content="GTK-Doc V1.28 (XML mode)"> |
| 12 | <link rel="stylesheet" href="style.css" type="text/css"> |
| 13 | </head> |
| 14 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
| 15 | <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle"> |
| 16 | <td width="100%" align="left" class="shortcuts"></td> |
| 17 | <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> |
| 18 | <td><img src="up-insensitive.png" width="16" height="16" border="0"></td> |
| 19 | <td><a accesskey="p" href="iptc-about.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> |
| 20 | <td><a accesskey="n" href="iptc-overview.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> |
| 21 | </tr></table> |
| 22 | <div class="refentry"> |
| 23 | <a name="iptc-commandline"></a><div class="titlepage"></div> |
| 24 | <div class="refnamediv"><table width="100%"><tr> |
| 25 | <td valign="top"> |
| 26 | <h2><span class="refentrytitle">The IPTC Command-Line Utility</span></h2> |
| 27 | <p>The IPTC Command-Line Utility — how to modify IPTC data from the command-line</p> |
| 28 | </td> |
| 29 | <td class="gallery_image" valign="top" align="right"></td> |
| 30 | </tr></table></div> |
| 31 | <div class="refsect1"> |
| 32 | <a name="command-line"></a><h2>The IPTC Command-Line Utility</h2> |
| 33 | <p> |
| 34 | libiptcdata ships with a companion utility, <span class="application">iptc</span>, |
| 35 | which provides a command-line interface for viewing and modifying the IPTC |
| 36 | data of a JPEG file. Its usage is as follows: |
| 37 | |
| 38 | </p> |
| 39 | <pre class="programlisting"> |
| 40 | Utility for viewing and modifying the contents of IPTC metadata in images |
| 41 | |
| 42 | Usage: iptc [OPTIONS] [FILE]... |
| 43 | |
| 44 | Examples: |
| 45 | iptc image.jpg # display the IPTC metadata contained in image.jpg |
| 46 | iptc -m Caption -v "Foo" *.jpg |
| 47 | # set caption "Foo" in all jpegs of the curr. dir. |
| 48 | iptc -a Keywords -v "vacation" *.jpg |
| 49 | iptc -a 2:25 -v "vacation" *.jpg |
| 50 | # either command adds keyword "vacation" to all jpegs |
| 51 | iptc -d Keywords:1 image.jpg |
| 52 | # removes keyword number 1 (the 2nd) from image.jpg |
| 53 | iptc -d Keywords:all image.jpg |
| 54 | # removes all keywords from image.jpg |
| 55 | |
| 56 | Operations: |
| 57 | -a, --add=TAG add new tag with identifier TAG |
| 58 | -m, --modify=TAG modify tag with identifier TAG (add if not present) |
| 59 | -v, --value=VALUE value for added/modified tag |
| 60 | -d, --delete=TAG delete tag with identifier TAG |
| 61 | -p, --print=TAG print value of tag with identifier TAG |
| 62 | |
| 63 | Options: |
| 64 | -q, --quiet produce less verbose output |
| 65 | -b, --backup backup any modified files |
| 66 | --no-sort do not sort tags before saving |
| 67 | |
| 68 | Informative output: |
| 69 | -l, --list list the names of all known tags (i.e. Caption, etc.) |
| 70 | -L, --list-desc=TAG print the name and description of TAG |
| 71 | --help print this help, then exit |
| 72 | --version print iptc program version number, then exit |
| 73 | </pre> |
| 74 | <p> |
| 75 | </p> |
| 76 | <p> |
| 77 | The program returns success whenever at least one operation succeeds on |
| 78 | at least one file. The program returns failure when no operation succeeds |
| 79 | on any file. Thus, if you intend to use it in a script and need to know |
| 80 | whether each operation succeeds, only one operation should be performed |
| 81 | at a time so the return value is meaningful for that operation. |
| 82 | </p> |
| 83 | <p> |
| 84 | iptc also serves as an easy way to test the features of the libiptcdata |
| 85 | library, although the library itself has many more features than iptc |
| 86 | exposes. Lastly, the source code of iptc also serves as a reference |
| 87 | for writing other applications that use libiptcdata. |
| 88 | </p> |
| 89 | </div> |
| 90 | </div> |
| 91 | <div class="footer"> |
| 92 | <hr>Generated by GTK-Doc V1.28</div> |
| 93 | </body> |
| 94 | </html> |