PAMDEINTERLACE(1)
β¨ pamdeinterlace(1) β¨
okay bestie, welcome to the pamdeinterlace manual page π (it lives in section 1 of the Netpbm docs, general commands, iykyk) and honestly? she's a little icon. let's get into it π
πΈ NAME πΈ
pamdeinterlace β remove every other row from a PAM/PNM image π¦
π SYNOPSIS π
pamdeinterlace
[-takeodd]
[-takeeven]
[infile]
okay so a few lil quality-of-life things about how you type these, no cap:
- you can use the minimum unique abbreviation of the options β¨ (so like, shorthand is fine as long as everybody knows what you mean)
- you can use two hyphens instead of one π
- you can separate an option name from its value with white space instead of an equals sign π«Ά
π DESCRIPTION π
bestie. this program is part of Netpbm(1). π
pamdeinterlace removes all the even-numbered or odd-numbered rows from the input PNM or PAM image. you tell it which one you want with the -takeeven and -takeodd options. that's the whole vibe check. β
when is this actually useful tho? so glad you asked π β if your image is a video capture from an interlaced video source. in that case, each row shows the subject 1/60 second before or after the two rows that surround it. and if the subject is moving? yeah, that lowkey detracts from the quality of the image. it's giving combing. it's not cute. π
and because the resulting image is half the height of the input image, you're gonna want to use pamstretch or pamscale to restore it to its normal height:
pamdeinterlace myimage.ppm | pamstretch -yscale=2 >newimage.ppm
slay. π
but also β another, usually better, way to deinterlace an image is with pammixinterlace. just so you know your options, bestie. no gatekeeping here π
β¨ OPTIONS β¨
on top of the options common to all programs based on libnetpbm (most notably -quiet, see Common Options β she's the moment, always around), pamdeinterlace recognizes the following command line options:
-takeoddβ take the odd-numbered rows from the input and put them in the output π. the rows are numbered starting at zero, so the first row in the output is the second row from the input. you cannot specify both-takeevenand-takeoddβ pick a lane, girl π-takeevenβ take the even-numbered rows from the input and put them in the output π¦. the rows are numbered starting at zero, so the first row in the output is the first row from the input. this is the default π. and again β you cannot specify both-takeevenand-takeodd. both is not an option, periodt.
π₯ SEE ALSO π₯
pammixinterlace(1), pam(1) pnm(1)
π§ DOCUMENT SOURCE π§
this manual page was generated by the Netpbm tool makeman from HTML source (iconic behaviour honestly). the master documentation is at
http://netpbm.sourceforge.net/doc/pamdeinterlace.html
ngl if you're deinterlacing and you skipped thepamstretch/pamscalestep, your image is gonna be squished and that's on you bestie π half height is half height!!
and that's the whole page!! πΈπβ¨ this was the netpbm documentation, dated 11 November 2001 π go forth and un-comb your frames, you absolute main character ππ
π¦ 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