1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-21 22:22:07 +02:00
tldr/pages/common/pamundice.md
Antti Savolainen e7e3c0b668 batch4
2025-03-28 18:48:45 +02:00

884 B

pamundice

Combine a grid of Netpbm images into one. See also: pamdice. More information: https://netpbm.sourceforge.net/doc/pamundice.html.

  • Combine the images whose names match the printf-style filename expression. Assume a grid with a specific size:

pamundice {{filename_%1d_%1a.ppm}} {{[-a|-across]}} {{grid_width}} {{[-d|-down]}} {{grid_height}} > {{path/to/output.ppm}}

  • Assume that the tiles overlap horizontally and vertically by the specified amount:

pamundice {{filename_%1d_%1a.ppm}} {{[-a|-across]}} {{x_value}} {{[-d|-down]}} {{y_value}} {{[-h|-hoverlap]}} {{value}} {{[-vo|-voverlap]}} {{value}} > {{path/to/output.ppm}}

  • Specify the images to be combined through a text file containing one filename per line:

pamundice {{[-l|-listfile]}} {{path/to/file.txt}} {{[-a|-across]}} {{x_value}} {{[-d|-down]}} {{y_value}} > {{path/to/output.ppm}}