PAMSLICE(1)
π Pamslice User Manual π
okay bestie, you found it β the Pamslice User Manual, straight out of the General Commands Manual section. pull up a chair, we're doing a vibe check on one single line of pixels and it's gonna be iconic.
β¨ NAME β¨
pamslice β extract one line of values out of a Netpbm image π
π¦ SYNOPSIS π¦
pamslice {-row=rownumber | -column=columnnumber} [-plane=planenumber]
[imagefile]
πΈ OPTION USAGE πΈ
the lil rules for typing these, and yes they're giving flexible:
- All options can be abbreviated to their shortest unique prefix. no need to type the whole thing, she'll know what you mean π
- You may use two hyphens instead of one. (yes, both work. we don't gatekeep.)
- You may separate an option name and its value with white space instead of an equals sign. so
-row=5and-row 5are both slaying.
π DESCRIPTION π
so this program is part of Netpbm(1). main character of a whole family fr.
pamslice extracts one line of tuples (pixels) out of a Netpbm image and prints their values in a table. a "line" here means a row or a column, okay? it shows you a one-dimensional cross section of a two-dimensional image. and with the -plane option it can be thought of as a one-dimensional cross-section of a three-dimensional image. that's the glow-up. β¨
The table has one line per tuple, consisting of blank-separated ASCII decimal numbers.
- The first number is the column number if you specified a row slice, or the row number if you specified a column slice. (so like, the sequence number of where you are.)
- The rest of the numbers are the sample values in plane number order.
For a PBM or PGM input, there is only one plane. For a PPM input, Plane 0 is red, Plane 1 is green, and Plane 2 is blue. See the specifications of the image formats for details on exactly what these numbers mean. π
ok but what if you want the ENTIRE raster of a Netpbm image? then you use pamtable, bestie. different tool, different moment, same energy.
π OPTIONS π
In addition to the options common to all programs based on libnetpbm (most notably -quiet, see Common Options), pamslice recognizes the following command line options:
-row=rownumberβ this says the slice is horizontal, i.e. one row of the image, and tells you which row. Rows are numbered from the top, starting with0. π«Ά
You cannot specify both -row and -column. pick a lane, babe.
-column=colnumberβ this says the slice is vertical, i.e. one column of the image, and tells you which column. Columns are numbered from the left, starting with0. π¦
You cannot specify both -row and -column. same rule, still watching. π
-plane=planenumberβ this specifies that you are interested in only one plane of the image, and which one. Planes are numbered from0and their meanings vary on the type of image. In a PPM image, Plane 0 is red, Plane 1 is green, and Plane 2 is blue. π
If you don't specify -plane, you get all the planes β each line of output has multiple numbers in addition to the sequence number. If you do specify -plane, each line of output contains one number in addition to the sequence number. one number only, she's minimal like that. β¨
-xmgrβ this option causespamsliceto format the output as input for axmgr, so you can plot it. π the only difference this option makes is that it adds header information to the beginning of the output. that's literally it. no cap.
π SEE ALSO π
slices? no β these: pamtable(1) pamcut(1) pamtopnm(1) pamchannel(1) pnm(1)
π HISTORY π
pamslice replaced pgmslice in Netpbm 10.3 (June 2002). ποΈ It was backward compatible, but it worked on Netpbm images other than PGM and PBM and it added the -plane and -xmgr options. so basically an upgrade with extra sparkle. π
π AUTHOR π
Jos Dingjan <jos@tuatha.org> wrote pgmslice after being unable to find the source code to Marco Beijersbergen's program with the same name. Then Bryan Henderson converted it to pamslice. two icons, one lineage. π
π 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/pamslice.html
and that's the whole thing, bestie!! π«Ά this page came to you from netpbm documentation, dated 08 February 2010, and yeah the footer still says Pamslice User Manual(1) because legends never change. go slice something. π β¨π¦
π¦ where this page comes from
- 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