pamcomp

composites two images

TLDR

Composite images
$ pamcomp [overlay.pam] [base.pam] > [output.pam]
With transparency
$ pamcomp -alpha=[mask.pgm] [overlay.pam] [base.pam] > [output.pam]
Specify position
$ pamcomp -xoff=[100] -yoff=[50] [overlay.pam] [base.pam] > [output.pam]

SYNOPSIS

pamcomp [options] overlay base

DESCRIPTION

pamcomp composites two images. Overlays with transparency support.The tool combines PAM/PNM images. Part of Netpbm.

PARAMETERS

OVERLAY

Foreground image.
BASE
Background image.
-alpha FILE
Alpha mask file.
-xoff PIXELS
X offset.
-yoff PIXELS
Y offset.
-align POS
Alignment position.

INSTALL

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

CAVEATS

Part of Netpbm. PAM/PNM format. Alpha channel support.

HISTORY

pamcomp is part of Netpbm for image compositing operations.

SEE ALSO

pnmcomp(1), pnmpaste(1), netpbm(1)