pamfunc
Apply a simple arithmetic function to a Netpbm image. tldr-pages
On several platforms
Several platforms
Apply the specified arithmetic function with n as the second argument to each sample in the specified PAM image
pamfunc -multiplier n path/to/input.pam >path/to/output.pamIdentifyApply the specified bit string function with n as the second argument to each sample in the specified PAM image
pamfunc -andmask n path/to/input.pam >path/to/output.pamIdentify