pamcut Command Examples

Cut out a rectangular region from a Netpbm image. See also: pamcrop, pamdice, pamcomp. More information: https://netpbm.sourceforge.net/doc/pamcut.html.

pamcut -cropleft {{value}} -cropright {{value}} -croptop {{value}} -cropbottom {{value}} {{path/to/image.ppm}} > {{path/to/output.ppm}}

pamcut -left {{value}} -right {{value}} {{path/to/image.ppm}} > {{path/to/output.ppm}}

pamcut -top {{value}} -bottom {{value}} -pad {{path/to/image.ppm}} > {{path/to/output.ppm}}