LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ppmspread

Randomly displace pixels for noise effect

TLDR

Spread pixels randomly
$ ppmspread [amount] [input.ppm] > [output.ppm]
copy
Light spread effect
$ ppmspread 5 [input.ppm] > [output.ppm]
copy
Heavy spread effect
$ ppmspread 20 [input.ppm] > [output.ppm]
copy

SYNOPSIS

ppmspread amount [file]

DESCRIPTION

ppmspread randomly displaces each pixel in a PPM image to a new position within the specified radius, creating a scattered, noise-like blur effect. Larger spread amounts produce more diffuse results while small amounts add subtle texture.Unlike Gaussian blur which averages pixels, spread preserves individual pixel colors but randomizes their positions, producing a distinctive frosted glass or pointillist appearance. Part of the Netpbm toolkit.

PARAMETERS

AMOUNT

Spread radius in pixels.
FILE
Input PPM file.

INSTALL

sudo apt install netpbm
copy
sudo dnf install netpbm
copy
sudo pacman -S netpbm
copy
sudo apk add netpbm
copy
sudo zypper install netpbm
copy
brew install netpbm
copy
nix profile install nixpkgs#netpbm
copy

CAVEATS

Only accepts PPM format input. Use pnmtoppm to convert from other formats first. The amount parameter specifies the maximum displacement in any direction; actual displacement for each pixel is random within that range.

SEE ALSO

ppmshift(1), pnmnoise(1), netpbm(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid