Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

rdjpgcom (1)

Name

rdjpgcom - display text comments from a JPEG file

Synopsis

rdjpgcom [ -verbose ] [ filename ]

Description

RDJPGCOM(1)                 General Commands Manual                RDJPGCOM(1)



NAME
       rdjpgcom - display text comments from a JPEG file

SYNOPSIS
       rdjpgcom [ -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
       -verbose
              Causes rdjpgcom to also display the JPEG image dimensions.

       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 illustration 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  mark-
       ers containing useful textual information.  If you like, you can modify
       the source code to print other APPn marker types as well.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+-----------------------+
       |ATTRIBUTE TYPE |   ATTRIBUTE VALUE     |
       +---------------+-----------------------+
       |Availability   | image/library/libjpeg |
       +---------------+-----------------------+
       |Stability      | Uncommitted           |
       +---------------+-----------------------+

SEE ALSO
       cjpeg(1), djpeg(1), jpegtran(1), wrjpgcom(1)

AUTHOR
       Independent JPEG Group



NOTES
       Source code for open source software components in Oracle  Solaris  can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This    software    was    built    from    source     available     at
       https://github.com/oracle/solaris-userland.    The  original  community
       source     was      downloaded      from       http://jpegclub.org/sup-
       port/files/jpegsrc.v6b2.tar.gz.

       Further information about this software can be found on the open source
       community website at https://sourceforge.net/projects/libjpeg/.



                                11 October 1997                    RDJPGCOM(1)