1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-27 03:33:26 +02:00
tldr/pages/common/pamcomp.md
Antti Savolainen e7e3c0b668 batch4
2025-03-28 18:48:45 +02:00

20 lines
849 B
Markdown

# 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 {{[-v|-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}}`