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

pnmpaste — Paste a PNM image into another PNM image. More information: <https://netpbm.sourceforge.net/doc/pnmp

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

Problem

How to use the pnmpaste command: Paste a PNM image into another PNM image. More information: <https://netpbm.sourceforge.net/doc/pnmpaste.html>.

Solution

pnmpaste — Paste a PNM image into another PNM image. More information: <https://netpbm.sourceforge.net/doc/pnmpaste.html>.

Paste a PNM image into another PNM image at the specified coordinates:
pnmpaste {{x}} {{y}} {{path/to/image1.pnm}} {{path/to/image2.pnm}} > {{path/to/output.pnm}}


Paste the image read from stdin into the specified image:
{{command}} | pnmpaste {{x}} {{y}} {{path/to/image.pnm}} > {{path/to/output.pnm}}


Combine the overlapping pixels by the specified boolean operation, where white pixels represent true while black pixels represent false:
pnmpaste -{{and|nand|or|nor|xor|xnor}} {{x}} {{y}} {{path/to/image1.pnm}} {{path/to/image2.pnm}} > {{path/to/output.pnm}}

Code Snippets

Paste a PNM image into another PNM image at the specified coordinates

pnmpaste {{x}} {{y}} {{path/to/image1.pnm}} {{path/to/image2.pnm}} > {{path/to/output.pnm}}

Paste the image read from `stdin` into the specified image

{{command}} | pnmpaste {{x}} {{y}} {{path/to/image.pnm}} > {{path/to/output.pnm}}

Combine the overlapping pixels by the specified boolean operation, where white pixels represent `true` while black pixels represent `false`

pnmpaste -{{and|nand|or|nor|xor|xnor}} {{x}} {{y}} {{path/to/image1.pnm}} {{path/to/image2.pnm}} > {{path/to/output.pnm}}

Context

tldr-pages: common/pnmpaste

Revisions (0)

No revisions yet.