PPMSHIFT(1)
π ppmshift β the Netpbm glow-up you didn't know you needed
okay bestie, this is a page from the Ppmshift User Manual, section 1 of the General Commands Manual, and it's about to shift your whole world. literally. sideways. randomly. π¦
β¨ NAME β¨
ppmshift β shift lines of a PPM image left or right by a random amount
β¨ SYNOPSIS β¨
ppmshift shift [ppmfile]
β¨ DESCRIPTION β¨
so this program is part of Netpbm(1), iconic family, no notes. π«Ά
ppmshift reads a PPM image as input, and then it does the thing: it shifts every row of image data to the left or to the right by a random amount, somewhere within a range of shift pixels. the random distribution is uniform and it's centered at zero movement β so like, on average, nobody's going anywhere, but every individual row is out here making choices. π
ngl, the randomness in the image is limited before Netpbm 10.37 (December 2006) β if you run the program twice in the same second, you may get identical output. same second, same vibe. π
the tea: this is an effect the author intended to use for MPEG tests. unfortunately, that did not work out β it creates too random patterns to be used for animations. π but lowkey? it might still give interesting results on still images. main character energy on a static pic. β¨
β¨ OPTIONS β¨
there are no command line options defined specifically for ppmshift, bestie. but it does recognize the options common to all programs based on libnetpbm β see Common Options. (iykyk.) π
β¨ EXAMPLE β¨
check this out: save your favorite model's picture from something like alt.binaries.pictures.supermodels (ok, or from any other picture source), convert it to ppm, and process it e.g. like this β assuming the picture is 800x600 pixels:
#take the upper half, and leave it like it is
pamcut -top=0 -width=800 -height=300 cs.ppm >upper.ppm
#take the lower half, flip it upside down, dim it and distort it a little
pamcut -top=300 -width=800 -height=300 cs.ppm | \
pamflip -topbottom | \
ppmdim 0.7 | \
ppmshift 10 >lower.ppm
#and concatenate the two pieces
pamcat -topbottom upper.ppm lower.ppm >newpic.ppm
and the resulting picture looks like the image being reflected on a water surface with slight ripples. π absolutely ate, fr fr. π₯
β¨ SEE ALSO β¨
ppm(1)pamcut(1)pamflip(1)ppmdim(1)pamcat(1)
β¨ AUTHOR β¨
Copyright (C) 1993 by Frank Neumann π
β¨ 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/ppmshift.html
and that's the whole page, bestie π this one came from the netpbm documentation, dated 20 November 2008, and it's giving very much "Ppmshift User Manual(1)" in the footer. slay, bye πβ¨πΈ
π¦ 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