WRJPGCOM(1)
πΈ NAME πΈ
okay bestie, meet wrjpgcom β this is the wrjpgcom(1) manual page, and it's literally here to insert text comments into a JPEG file. no cap. π
β¨ SYNOPSIS β¨
wrjpgcom [ -replace ] [ -comment text ] [ -cfile name ] [ filename ]
π DESCRIPTION π
So here's the vibe: wrjpgcom reads the named JPEG/JFIF file β or standard input if no file is named β and generates a new JPEG/JFIF file on standard output. A comment block is added to the file. iconic behavior. π¦
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. π
wrjpgcom adds a COM block, containing text you provide, to a JPEG file. Ordinarily, the COM block is added after any existing COM blocks; but you can delete the old COM blocks if you wish. lowkey powerful.
π OPTIONS π
Switch names may be abbreviated, and are not case sensitive.
-replaceβ Delete any existing COM blocks from the file.-commenttext β Supply text for new COM block on command line.-cfilename β Read text for new COM block from named file.
If you have only one line of comment text to add, you can provide it on the command line with -comment. The comment text must be surrounded with quotes so that it is treated as a single argument. Longer comments can be read from a text file. π«Ά
If you give neither-commentnor-cfile, thenwrjpgcomwill read the comment text from standard input. (In this case an input image file name MUST be supplied, so that the source JPEG file comes from somewhere else.) You can enter multiple lines, up to 64KB worth. Type an end-of-file indicator (usuallycontrol-D) to terminate the comment text entry. π§
wrjpgcom will not add a COM block if the provided comment string is empty. Therefore -replace -comment "" can be used to delete all COM blocks from a file. π not me deleting every comment block with one empty string, but okay!
π EXAMPLES π
Add a short comment to in.jpg, producing out.jpg:
wrjpgcom -c "View of my back yard" in.jpg > out.jpg
Attach a long comment previously stored in comment.txt:
wrjpgcom in.jpg < comment.txt > out.jpg
or equivalently
wrjpgcom -cfile comment.txt < in.jpg > out.jpg
π SEE ALSO π
cjpeg(1), djpeg(1), jpegtran(1), rdjpgcom(1)
π AUTHOR π
Independent JPEG Group
mwah π that's the whole page, bestie β wrjpgcom(1), dated 15 June 1995, brought to you by the Independent JPEG Group. periodt. π
π¦ 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