kusano 7d535a
.TH RDJPGCOM 1 "02 April 2009"
kusano 7d535a
.SH NAME
kusano 7d535a
rdjpgcom \- display text comments from a JPEG file
kusano 7d535a
.SH SYNOPSIS
kusano 7d535a
.B rdjpgcom
kusano 7d535a
[
kusano 7d535a
.B \-raw
kusano 7d535a
]
kusano 7d535a
[
kusano 7d535a
.B \-verbose
kusano 7d535a
]
kusano 7d535a
[
kusano 7d535a
.I filename
kusano 7d535a
]
kusano 7d535a
.LP
kusano 7d535a
.SH DESCRIPTION
kusano 7d535a
.LP
kusano 7d535a
.B rdjpgcom
kusano 7d535a
reads the named JPEG/JFIF file, or the standard input if no file is named,
kusano 7d535a
and prints any text comments found in the file on the standard output.
kusano 7d535a
.PP
kusano 7d535a
The JPEG standard allows "comment" (COM) blocks to occur within a JPEG file.
kusano 7d535a
Although the standard doesn't actually define what COM blocks are for, they
kusano 7d535a
are widely used to hold user-supplied text strings.  This lets you add
kusano 7d535a
annotations, titles, index terms, etc to your JPEG files, and later retrieve
kusano 7d535a
them as text.  COM blocks do not interfere with the image stored in the JPEG
kusano 7d535a
file.  The maximum size of a COM block is 64K, but you can have as many of
kusano 7d535a
them as you like in one JPEG file.
kusano 7d535a
.SH OPTIONS
kusano 7d535a
.TP
kusano 7d535a
.B \-raw
kusano 7d535a
Normally
kusano 7d535a
.B rdjpgcom
kusano 7d535a
escapes non-printable characters in comments, for security reasons.
kusano 7d535a
This option avoids that.
kusano 7d535a
.PP
kusano 7d535a
.B \-verbose
kusano 7d535a
Causes
kusano 7d535a
.B rdjpgcom
kusano 7d535a
to also display the JPEG image dimensions.
kusano 7d535a
.PP
kusano 7d535a
Switch names may be abbreviated, and are not case sensitive.
kusano 7d535a
.SH HINTS
kusano 7d535a
.B rdjpgcom
kusano 7d535a
does not depend on the IJG JPEG library.  Its source code is intended as an
kusano 7d535a
illustration of the minimum amount of code required to parse a JPEG file
kusano 7d535a
header correctly.
kusano 7d535a
.PP
kusano 7d535a
In
kusano 7d535a
.B \-verbose
kusano 7d535a
mode,
kusano 7d535a
.B rdjpgcom
kusano 7d535a
will also attempt to print the contents of any "APP12" markers as text.
kusano 7d535a
Some digital cameras produce APP12 markers containing useful textual
kusano 7d535a
information.  If you like, you can modify the source code to print
kusano 7d535a
other APPn marker types as well.
kusano 7d535a
.SH SEE ALSO
kusano 7d535a
.BR cjpeg (1),
kusano 7d535a
.BR djpeg (1),
kusano 7d535a
.BR jpegtran (1),
kusano 7d535a
.BR wrjpgcom (1)
kusano 7d535a
.SH AUTHOR
kusano 7d535a
Independent JPEG Group