HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pamcomp — Overlay two PAM images. More information: <https://netpbm.sourceforge.net/doc/pamcomp.html>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
pamcompcommandpamimagestwoclioverlaymore

Problem

How to use the pamcomp command: Overlay two PAM images. More information: <https://netpbm.sourceforge.net/doc/pamcomp.html>.

Solution

pamcomp — Overlay two PAM images. More information: <https://netpbm.sourceforge.net/doc/pamcomp.html>.

Overlay two images such with the overlay blocking parts of the underlay:
pamcomp {{path/to/overlay.pam}} {{path/to/underlay.pam}} > {{path/to/output.pam}}


Set the horizontal alignment of the overlay:
pamcomp {{[-ali|-align]}} {{left|center|right|beyondleft|beyondright}} {{[-x|-xoff]}} {{x_offset}} {{path/to/overlay.pam}} {{path/to/underlay.pam}} > {{path/to/output.pam}}


Set the vertical alignment of the overlay:
pamcomp {{[-va|-valign]}} {{top|middle|bottom|above|below}} {{[-y|-yoff]}} {{y_offset}} {{path/to/overlay.pam}} {{path/to/underlay.pam}} > {{path/to/output.pam}}


Set the opacity of the overlay:
pamcomp {{[-o|-opacity]}} {{0.7}} {{path/to/overlay.pam}} {{path/to/underlay.pam}} > {{path/to/output.pam}}

Code Snippets

Overlay two images such with the overlay blocking parts of the underlay

pamcomp {{path/to/overlay.pam}} {{path/to/underlay.pam}} > {{path/to/output.pam}}

Set the horizontal alignment of the overlay

pamcomp {{[-ali|-align]}} {{left|center|right|beyondleft|beyondright}} {{[-x|-xoff]}} {{x_offset}} {{path/to/overlay.pam}} {{path/to/underlay.pam}} > {{path/to/output.pam}}

Set the vertical alignment of the overlay

pamcomp {{[-va|-valign]}} {{top|middle|bottom|above|below}} {{[-y|-yoff]}} {{y_offset}} {{path/to/overlay.pam}} {{path/to/underlay.pam}} > {{path/to/output.pam}}

Set the opacity of the overlay

pamcomp {{[-o|-opacity]}} {{0.7}} {{path/to/overlay.pam}} {{path/to/underlay.pam}} > {{path/to/output.pam}}

Context

tldr-pages: common/pamcomp

Revisions (0)

No revisions yet.