fitstopnm, pamcut, pamdeinterlace, pamdice, pammixinterlace, pamtofits, pamundice, pnmtofits: add pages (#12296)
* fitstopnm, pamcut, pamdeinterlace, pamdice, pammixinterlace, pamtofits, pamundice, pnmtofits: add pages
* Apply suggestions from code review
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* Update pages/common/pamdice.md
* Update pages/common/fitstopnm.md
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* Update pages/common/fitstopnm.md
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* Update pages/common/pamundice.md
---------
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
2024-02-22 16:23:38 +01:00
|
|
|
# pamcut
|
|
|
|
|
|
|
|
> Cut out a rectangular region from a Netpbm image.
|
|
|
|
> See also: `pamcrop`, `pamdice`, `pamcomp`.
|
|
|
|
> More information: <https://netpbm.sourceforge.net/doc/pamcut.html>.
|
|
|
|
|
|
|
|
- Discard the specified number of columns/rows on each side of the image:
|
|
|
|
|
2025-04-01 06:42:14 +03:00
|
|
|
`pamcut {{[-cropl|-cropleft]}} {{value}} {{[-cropr|-cropright]}} {{value}} {{[-cropt|-croptop]}} {{value}} {{[-cropb|-cropbottom]}} {{value}} {{path/to/image.ppm}} > {{path/to/output.ppm}}`
|
fitstopnm, pamcut, pamdeinterlace, pamdice, pammixinterlace, pamtofits, pamundice, pnmtofits: add pages (#12296)
* fitstopnm, pamcut, pamdeinterlace, pamdice, pammixinterlace, pamtofits, pamundice, pnmtofits: add pages
* Apply suggestions from code review
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* Update pages/common/pamdice.md
* Update pages/common/fitstopnm.md
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* Update pages/common/fitstopnm.md
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* Update pages/common/pamundice.md
---------
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
2024-02-22 16:23:38 +01:00
|
|
|
|
|
|
|
- Keep only the columns between the specified columns (inclusively):
|
|
|
|
|
2025-04-01 06:42:14 +03:00
|
|
|
`pamcut {{[-l|-left]}} {{value}} {{[-ri|-right]}} {{value}} {{path/to/image.ppm}} > {{path/to/output.ppm}}`
|
fitstopnm, pamcut, pamdeinterlace, pamdice, pammixinterlace, pamtofits, pamundice, pnmtofits: add pages (#12296)
* fitstopnm, pamcut, pamdeinterlace, pamdice, pammixinterlace, pamtofits, pamundice, pnmtofits: add pages
* Apply suggestions from code review
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* Update pages/common/pamdice.md
* Update pages/common/fitstopnm.md
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* Update pages/common/fitstopnm.md
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* Update pages/common/pamundice.md
---------
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
2024-02-22 16:23:38 +01:00
|
|
|
|
|
|
|
- Fill missing areas with black pixels if the specified rectangle does not entirely lie within the input image:
|
|
|
|
|
2025-04-01 06:42:14 +03:00
|
|
|
`pamcut {{[-t|-top]}} {{value}} {{[-b|-bottom]}} {{value}} -pad {{path/to/image.ppm}} > {{path/to/output.ppm}}`
|