rdjpgcom - Unix, Linux Command

previous next AddThis Social Bookmark Button


rdjpgcom - display text comments from a JPEG file


rdjpgcom [ -verbose ] [ filename ]


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.



-verbose Causes rdjpgcom to also display the JPEG image dimensions.
Switch names may be abbreviated, and are not case sensitive.


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


Independent JPEG Group
previous next Printer Friendly