<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
                   "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<!-- lifted from troff+man by doclifter -->
<refentry id='rdjpgcom1'>
<refmeta>
<refentrytitle>RDJPGCOM</refentrytitle>
<manvolnum>1E</manvolnum>
<refmiscinfo class='date'>11 October 1997</refmiscinfo>
<refmiscinfo class='source'>IJG</refmiscinfo>
<refmiscinfo class='manual'>NFIS Reference Manual</refmiscinfo>
</refmeta>
<refnamediv id='name'>
<refname>rdjpgcom</refname>
<refpurpose>display text comments from a JPEG file</refpurpose>
</refnamediv>
<!-- body begins here -->
<refsynopsisdiv id='synopsis'>
<cmdsynopsis>
  <command>rdjpgcom</command>    
    <arg choice='opt'>-verbose </arg>
    <arg choice='opt'><replaceable>filename</replaceable></arg>
    <sbr/>
</cmdsynopsis>
</refsynopsisdiv>


<refsect1 id='description'><title>DESCRIPTION</title>
<para><command>rdjpgcom</command>
reads the named JPEG/JFIF file, or the standard input if no file is named,
and prints any text comments found in the file on the standard output.</para>

<para>The JPEG standard allows "comment" (COM) blocks to occur within a JPEG file.
Although the standard doesn't actually define what COM blocks are for, they
are widely used to hold user-supplied text strings.  This lets you add
annotations, titles, index terms, etc to your JPEG files, and later retrieve
them as text.  COM blocks do not interfere with the image stored in the JPEG
file.  The maximum size of a COM block is 64K, but you can have as many of
them as you like in one JPEG file.</para>
</refsect1>

<refsect1 id='options'><title>OPTIONS</title>
<variablelist remap='TP'>
  <varlistentry>
  <term><option>-verbose</option></term>
  <listitem>
<para>Causes
<command>rdjpgcom</command>
to also display the JPEG image dimensions.</para>
  </listitem>
  </varlistentry>
</variablelist>

<para>Switch names may be abbreviated, and are not case sensitive.</para>
</refsect1>

<refsect1 id='hints'><title>HINTS</title>
<para><command>rdjpgcom</command>
does not depend on the IJG JPEG library.  Its source code is intended as an
illustration of the minimum amount of code required to parse a JPEG file
header correctly.</para>

<para>In
<option>-verbose</option>
mode,
<command>rdjpgcom</command>
will also attempt to print the contents of any "APP12" markers as text.
Some digital cameras produce APP12 markers containing useful textual
information.  If you like, you can modify the source code to print
other APPn marker types as well.</para>
</refsect1>

<refsect1 id='see_also'><title>SEE ALSO</title>
<para><citerefentry><refentrytitle>cjpeg</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
<citerefentry><refentrytitle>djpeg</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
<citerefentry><refentrytitle>jpegtran</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
<citerefentry><refentrytitle>wrjpgcom</refentrytitle><manvolnum>1</manvolnum></citerefentry></para>
</refsect1>

<refsect1 id='author'><title>AUTHOR</title>
<para>Independent JPEG Group</para>
</refsect1>
</refentry>

