Your company here — click to reach over 10,000 unique daily visitors

ppmspread - Man Page

displace a PPM image's pixels by a random amount

Examples (TL;DR)


ppmspread amount [ppmfile] [-randomseed=integer]


This program is part of Netpbm(1).

ppmspread reads a PPM image as input and moves every pixel around a random bit relative to its original position. amount determines by how many pixels a pixel is to be moved around at most.

Pictures processed with this filter will seem to be somewhat dissolved or unfocussed (although they appear more coarse than images processed by something like pnmconvol).

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.


In addition to the options common to all programs based on libnetpbm (most notably -quiet, see Common Options ), ppmspread recognizes the following command line options:



This is the seed for the random number generator that generates the pixels.

Use this to ensure you get the same image on separate invocations.

This option was new in Netpbm 10.94 (March 2021).


See Also

ppm(1), pnmconvol(1)


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


Referenced By


06 March 2021 netpbm documentation