pamarith
Apply a binary function on two Netpbm images. tldr-pages
On several platforms
Several platforms
Apply the specified binary function pixel-wise on the two specified images (which must be of the same size)
pamarith -add path/to/image1.pam path/to/image2.pamIdentify