pampick - Man Page
pick images out of a multi-image Netpbm image stream
Examples (TL;DR)
- Execute a shell command on each image in a Netpbm file:
pampick image_number1 image_number2 ... < path/to/image.pam > path/to/output.pam
Synopsis
pampick
image_sequence_number ...
Minimum unique abbreviation of option is acceptable. 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.
Description
This program is part of Netpbm(1).
pampick reads a PNM or PAM image stream as input. It picks certain images from the stream and copies them to a new image stream on Standard Output.
You identify the images to pick by sequence number within the stream. Each image_sequence_number is a decimal sequence number, with zero meaning the first image.
The arguments must be in increasing order, without duplicates. The results are undefined if they are not. (There are a number of enhancements that might be made in future releases that would make whatever pampick does today when you break this rule change). pampick outputs the images in the same order as they appear in the input. If you specify no sequence numbers, pampick outputs nothing. If you specify a sequence number that is beyond what is in the input, pampick fails with an error message to that effect.
pampick always reads the entire input stream. (This is helpful when the input stream is a pipe and whatever is feeding the pipe would be upset if it filled up or broke).
To see how many images, and what kind, are in a stream, use pamfile.
To extract all the images in a stream into separate named files, use pamsplit.
Options
There are no command line options defined specifically for pampick, but it recognizes the options common to all programs based on libnetpbm (See Common Options .)
See Also
pamfile(1), pamsplit(1), pnm(1), pam(1), cat man page
History
pampick was new in Netpbm 10.31 (December 2005);
Document Source
This manual page was generated by the Netpbm tool 'makeman' from HTML source. The master documentation is at
Referenced By
pamexec(1), pamsplit(1), pamtris(1).