# rdjpgcom - display text comments from a JPEG file - man(1) - [phpMan]

[_RDJPGCOM_(1)](https://www.chedong.com/phpMan.php/man/RDJPGCOM/1/markdown)                            General Commands Manual                           [_RDJPGCOM_(1)](https://www.chedong.com/phpMan.php/man/RDJPGCOM/1/markdown)

## NAME
       rdjpgcom - display text comments from a JPEG file

## SYNOPSIS
       **rdjpgcom **[ **-raw **] [ **-verbose **] [ _filename_ ]

## DESCRIPTION
       **rdjpgcom  **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.

       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.

## OPTIONS
### -raw   
              This option avoids that.

### -verbose 

       Switch names may be abbreviated, and are not case sensitive.

## HINTS
       **rdjpgcom  **does  not depend on the IJG JPEG library.  Its source code is intended as an illus‐
       tration of the minimum amount of code required to parse a JPEG file header correctly.

       In **-verbose **mode, **rdjpgcom **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.

## SEE ALSO
       [**cjpeg**(1)](https://www.chedong.com/phpMan.php/man/cjpeg/1/markdown), [**djpeg**(1)](https://www.chedong.com/phpMan.php/man/djpeg/1/markdown), [**jpegtran**(1)](https://www.chedong.com/phpMan.php/man/jpegtran/1/markdown), [**wrjpgcom**(1)](https://www.chedong.com/phpMan.php/man/wrjpgcom/1/markdown)

## AUTHOR
       Independent JPEG Group

                                            02 April 2009                                [_RDJPGCOM_(1)](https://www.chedong.com/phpMan.php/man/RDJPGCOM/1/markdown)
