RDJPGCOM(1)
π 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β Normallyrdjpgcomescapes non-printable characters in comments, for security reasons (yes, for real, safety first π‘οΈ). This option avoids that. That's the whole thing.-verboseβ Causesrdjpgcomto 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
- alpine 3.22: libjpeg-turbo-doc 3.1.0-r0 Β· BSD-3-Clause AND IJG AND Zlib
- alpine 3.23: libjpeg-turbo-doc 3.1.2-r0 Β· BSD-3-Clause AND IJG AND Zlib
- alpine 3.24: libjpeg-turbo-doc 3.1.3-r0 Β· BSD-3-Clause AND IJG AND Zlib
- arch rolling: libjpeg-turbo 3.2.1-1 Β· BSD-3-Clause AND IJG
- centos-stream 10: libjpeg-turbo-utils 3.0.2-4.el10 Β· Zlib AND BSD-3-Clause AND MIT AND IJG
- centos-stream 9: libjpeg-turbo-utils 2.0.90-7.el9 Β· IJG
- debian bookworm: libjpeg-turbo-progs 1:2.1.5-2 Β· BSD-BY-LC-NE
- debian trixie: libjpeg-turbo-progs 1:2.1.5-4 Β· BSD-BY-LC-NE
- fedora 43: libjpeg-turbo-utils 3.1.2-1.fc43 Β· Zlib AND BSD-3-Clause AND MIT AND IJG
- fedora 43: libjpeg-turbo-utils 3.1.3-1.fc43 Β· Zlib AND BSD-3-Clause AND MIT AND IJG
- fedora 44: libjpeg-turbo-utils 3.1.3-1.fc44 Β· Zlib AND BSD-3-Clause AND MIT AND IJG
- nixos 26.05: libjpeg-turbo 3.1.4
- nixos 26.05: mozjpeg 4.1.5
- nixpkgs unstable: libjpeg-turbo 3.2.0
- nixpkgs unstable: mozjpeg 4.1.5
- opensuse-leap 16.0: libjpeg-turbo 3.0.4-160000.3.2 Β· BSD-3-Clause
- opensuse-leap 16.0: libjpeg-turbo 3.0.4-160000.3.2 Β· BSD-3-Clause
- opensuse-leap 16.0: libjpeg-turbo 3.0.4-160000.3.2 Β· BSD-3-Clause
- opensuse-leap 16.0: libjpeg-turbo 3.0.4-160000.3.2 Β· BSD-3-Clause
- ubuntu jammy: libjpeg-turbo-progs 2.1.2-0ubuntu1
- ubuntu noble: libjpeg-turbo-progs 2.1.5-2ubuntu2 Β· BSD-BY-LC-NE
- ubuntu questing: libjpeg-turbo-progs 2.1.5-4ubuntu2
- ubuntu resolute: libjpeg-turbo-progs 2.1.5-4ubuntu4 Β· BSD-BY-LC-NE
- ubuntu stonking: libjpeg-turbo-progs 1:3.1.3-4ubuntu2 Β· BSD-BY-LC-NE
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms