PAMPICK(1)
π PAMPICK(1) β Pampick User Manual π
okay bestie, welcome to the General Commands Manual, section 1, and lemme tell you about pampick because it's genuinely one of the most useful little gremlins in the whole Netpbm friend group π«Ά
β¨ NAME β¨
pampick β pick images out of a multi-image Netpbm image stream π
πΈ SYNOPSIS πΈ
pampick
image_sequence_number ...
okay quick housekeeping before we go any further, no cap:
- Minimum unique abbreviation of option is acceptable β like, you don't gotta spell the whole thing out, just enough that it's unambiguously that option β¨
- You may use double hyphens instead of single hyphen to denote options
- You may use white space in place of the equals sign to separate an option name from its value
that's just the vibe around here, iykyk π
π¦ DESCRIPTION π¦
This program is part of Netpbm(1) β one of the family, we love her π
So here's the tea: pampick reads a PNM or PAM image stream as input. Then it picks certain images from that stream and copies them to a new image stream on Standard Output. it's giving selective, and honestly? iconic behavior π
You identify the images you wanna pick by sequence number within the stream. Each image_sequence_number is a decimal sequence number, and zero means the first image. yes babe, we're zero-indexed, we're programmers, this is normal π
Now the rules, and listen up because this part is fr fr important:
- The arguments must be in increasing order, without duplicates π₯
- The results are undefined if they are not π β like, genuinely undefined. not "kinda weird", not "a little off", undefined. (There are a number of enhancements that might be made in future releases that would make whatever
pampickdoes today when you break this rule change β so like, don't build your whole personality on the current accidental behavior bestie, it might not survive the next version π) pampickoutputs the images in the same order as they appear in the input β it does not reorder them to match your argument order, okay? it's preserving the source vibe π- If you specify no sequence numbers,
pampickoutputs nothing. like, nothing nothing. empty. π€· - If you specify a sequence number that is beyond what is in the input,
pampickfails with an error message to that effect π
Also super important detail: pampick always reads the entire input stream. Even if it doesn't need the rest! and why? because that's genuinely a kindness β it's helpful when the input stream is a pipe and whatever is feeding the pipe would be upset if it filled up or broke π«Ά like, she's being polite to the upstream process. not me stanning correct pipeline etiquette π
Some recs for your other faves:
- Wanna see how many images, and what kind, are in a stream? Use
pamfileπ - Wanna extract all the images in a stream into separate named files? Use
pamsplitβ¨
π OPTIONS π
There are no command line options defined specifically for pampick, sorry bestie, she's a simple queen π
But! she does recognize the options common to all programs based on libnetpbm. (See Common Options.) so you're not fully alone in there πΈ
π SEE ALSO π
pamfile(1)pamsplit(1)pnm(1)pam(1)catman page π±
π HISTORY π
pampick was new in Netpbm 10.31 (December 2005) β a vintage baddie, we respect the heritage π
π§ DOCUMENT SOURCE π§
This manual page was generated by the Netpbm tool makeman from HTML source. The master documentation is at:
http://netpbm.sourceforge.net/doc/pampick.html
and that's the whole page bestie π©· this documentation came to you from netpbm documentation, dated 25 October 2005, and it says "Pampick User Manual(1)" at the bottom but we already knew that, we read the whole thing. go pick some images, stay zero-indexed, and remember: increasing order, no duplicates, or the rules stop applying to you πβ¨
π¦ where this page comes from
- debian bookworm: netpbm 2:11.01.00-2 Β· MIT
- debian trixie: netpbm 2:11.10.02-1 Β· MIT
- ubuntu noble: netpbm 2:11.05.02-1.1build1 Β· MIT
- ubuntu resolute: netpbm 2:11.10.02-1build1 Β· MIT
- ubuntu stonking: netpbm 2:11.13.03+ds-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms