RDJPGCOM(1)

πŸ“¦
version 3.2.1 Β· 2 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– rdjpgcom β€” read the vibes (and the text comments) out of your JPEGs πŸ’–

Okay bestie, welcome to rdjpgcom(1), aka the tiny little general-commands-manual icon that reads text comments out of JPEG files. No cap, she's small but she's mighty. πŸŽ€


✨ SYNOPSIS ✨

rdjpgcom [ -raw ] [ -verbose ] [ filename ]

That's it. That's the whole mood. πŸ’…


🌸 DESCRIPTION 🌸

So here's the tea: rdjpgcom reads the JPEG/JFIF file you name β€” or, if you don't name one at all, it just reads from standard input like a chill little gremlin β€” and then it prints any text comments it finds in that file to standard output. Simple. Iconic. πŸ¦‹

Now let me explain why this is a whole thing. The JPEG standard literally allows "comment" (COM) blocks to just… exist inside a JPEG file. And yeah, the standard doesn't actually define what COM blocks are for, which is lowkey hilarious, but the world collectively decided they're for holding user-supplied text strings. So people use them to stash annotations, titles, index terms, etc. inside their JPEG files, and then later they can pull those back out as text. 🫢

The COM blocks do not interfere with the actual image stored in the JPEG file β€” like, not even a little bit. And size-wise? The maximum size of a COM block is 64K, but you can have as many of them as you like in one JPEG file. As many as you like, bestie. Go off. πŸ”₯


πŸ’… OPTIONS πŸ’…

  • -raw β€” Normally rdjpgcom escapes non-printable characters in comments, for security reasons (yes, for real, safety first πŸ›‘οΈ). This option avoids that. That's the whole thing.
  • -verbose β€” Causes rdjpgcom to also display the JPEG image dimensions. Extra info, extra slay. ✨
Small but crucial detail: switch names may be abbreviated, and they are not case sensitive. So like, do your thing. 😌

🧚 HINTS 🧚

rdjpgcom does not depend on the IJG JPEG library. Not even a little. Her source code is intended as an illustration of the minimum amount of code required to parse a JPEG file header correctly β€” like a little educational icon showing you the bare minimum. 🌈

And 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. DIY era. πŸ’œ


πŸ” SEE ALSO πŸ”

cjpeg(1), djpeg(1), jpegtran(1), wrjpgcom(1) β€” the whole friend group. 🫢


πŸ‘‘ AUTHOR πŸ‘‘

Independent JPEG Group


Okay that's the whole page, bestie, go read some JPEG comments and have the day you deserve πŸ’–

Signing off with love: this was the General Commands Manual page for rdjpgcom, dated 02 April 2009 β€” mwah πŸ’‹

πŸ“¦ where this page comes from