|
kusano |
7d535a |
.TH WRJPGCOM 1 "15 June 1995"
|
|
kusano |
7d535a |
.SH NAME
|
|
kusano |
7d535a |
wrjpgcom \- insert text comments into a JPEG file
|
|
kusano |
7d535a |
.SH SYNOPSIS
|
|
kusano |
7d535a |
.B wrjpgcom
|
|
kusano |
7d535a |
[
|
|
kusano |
7d535a |
.B \-replace
|
|
kusano |
7d535a |
]
|
|
kusano |
7d535a |
[
|
|
kusano |
7d535a |
.BI \-comment " text"
|
|
kusano |
7d535a |
]
|
|
kusano |
7d535a |
[
|
|
kusano |
7d535a |
.BI \-cfile " name"
|
|
kusano |
7d535a |
]
|
|
kusano |
7d535a |
[
|
|
kusano |
7d535a |
.I filename
|
|
kusano |
7d535a |
]
|
|
kusano |
7d535a |
.LP
|
|
kusano |
7d535a |
.SH DESCRIPTION
|
|
kusano |
7d535a |
.LP
|
|
kusano |
7d535a |
.B wrjpgcom
|
|
kusano |
7d535a |
reads the named JPEG/JFIF file, or the standard input if no file is named,
|
|
kusano |
7d535a |
and generates a new JPEG/JFIF file on standard output. A comment block is
|
|
kusano |
7d535a |
added to the file.
|
|
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 |
.PP
|
|
kusano |
7d535a |
.B wrjpgcom
|
|
kusano |
7d535a |
adds a COM block, containing text you provide, to a JPEG file.
|
|
kusano |
7d535a |
Ordinarily, the COM block is added after any existing COM blocks; but you
|
|
kusano |
7d535a |
can delete the old COM blocks if you wish.
|
|
kusano |
7d535a |
.SH OPTIONS
|
|
kusano |
7d535a |
Switch names may be abbreviated, and are not case sensitive.
|
|
kusano |
7d535a |
.TP
|
|
kusano |
7d535a |
.B \-replace
|
|
kusano |
7d535a |
Delete any existing COM blocks from the file.
|
|
kusano |
7d535a |
.TP
|
|
kusano |
7d535a |
.BI \-comment " text"
|
|
kusano |
7d535a |
Supply text for new COM block on command line.
|
|
kusano |
7d535a |
.TP
|
|
kusano |
7d535a |
.BI \-cfile " name"
|
|
kusano |
7d535a |
Read text for new COM block from named file.
|
|
kusano |
7d535a |
.PP
|
|
kusano |
7d535a |
If you have only one line of comment text to add, you can provide it on the
|
|
kusano |
7d535a |
command line with
|
|
kusano |
7d535a |
.BR \-comment .
|
|
kusano |
7d535a |
The comment text must be surrounded with quotes so that it is treated as a
|
|
kusano |
7d535a |
single argument. Longer comments can be read from a text file.
|
|
kusano |
7d535a |
.PP
|
|
kusano |
7d535a |
If you give neither
|
|
kusano |
7d535a |
.B \-comment
|
|
kusano |
7d535a |
nor
|
|
kusano |
7d535a |
.BR \-cfile ,
|
|
kusano |
7d535a |
then
|
|
kusano |
7d535a |
.B wrjpgcom
|
|
kusano |
7d535a |
will read the comment text from standard input. (In this case an input image
|
|
kusano |
7d535a |
file name MUST be supplied, so that the source JPEG file comes from somewhere
|
|
kusano |
7d535a |
else.) You can enter multiple lines, up to 64KB worth. Type an end-of-file
|
|
kusano |
7d535a |
indicator (usually control-D) to terminate the comment text entry.
|
|
kusano |
7d535a |
.PP
|
|
kusano |
7d535a |
.B wrjpgcom
|
|
kusano |
7d535a |
will not add a COM block if the provided comment string is empty. Therefore
|
|
kusano |
7d535a |
\fB\-replace \-comment ""\fR can be used to delete all COM blocks from a file.
|
|
kusano |
7d535a |
.SH EXAMPLES
|
|
kusano |
7d535a |
.LP
|
|
kusano |
7d535a |
Add a short comment to in.jpg, producing out.jpg:
|
|
kusano |
7d535a |
.IP
|
|
kusano |
7d535a |
.B wrjpgcom \-c
|
|
kusano |
7d535a |
\fI"View of my back yard" in.jpg
|
|
kusano |
7d535a |
.B >
|
|
kusano |
7d535a |
.I out.jpg
|
|
kusano |
7d535a |
.PP
|
|
kusano |
7d535a |
Attach a long comment previously stored in comment.txt:
|
|
kusano |
7d535a |
.IP
|
|
kusano |
7d535a |
.B wrjpgcom
|
|
kusano |
7d535a |
.I in.jpg
|
|
kusano |
7d535a |
.B <
|
|
kusano |
7d535a |
.I comment.txt
|
|
kusano |
7d535a |
.B >
|
|
kusano |
7d535a |
.I out.jpg
|
|
kusano |
7d535a |
.PP
|
|
kusano |
7d535a |
or equivalently
|
|
kusano |
7d535a |
.IP
|
|
kusano |
7d535a |
.B wrjpgcom
|
|
kusano |
7d535a |
.B -cfile
|
|
kusano |
7d535a |
.I comment.txt
|
|
kusano |
7d535a |
.B <
|
|
kusano |
7d535a |
.I in.jpg
|
|
kusano |
7d535a |
.B >
|
|
kusano |
7d535a |
.I out.jpg
|
|
kusano |
7d535a |
.SH SEE ALSO
|
|
kusano |
7d535a |
.BR cjpeg (1),
|
|
kusano |
7d535a |
.BR djpeg (1),
|
|
kusano |
7d535a |
.BR jpegtran (1),
|
|
kusano |
7d535a |
.BR rdjpgcom (1)
|
|
kusano |
7d535a |
.SH AUTHOR
|
|
kusano |
7d535a |
Independent JPEG Group
|