← 返回命令列表

Linux command

pamcut 命令

文本

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Cut region from image

pamcut [x] [y] [width] [height] [input.pam] > [output.pam]

Cut from coordinates

pamcut -left [100] -top [50] -width [200] -height [150] [input.pam] > [output.pam]

Cut right portion

pamcut -right [100] -bottom [100] -width [200] -height [200] [input.pam] > [output.pam]

Pad if outside bounds

pamcut -pad -left [-10] -top [-10] -width [300] -height [300] [input.pam] > [output.pam]

说明

pamcut extracts a rectangular region from a PAM or PNM image. Coordinates can be specified from any corner using combinations of left/right and top/bottom.

参数

-left _x_
Left edge position.
-right _x_
Right edge position.
-top _y_
Top edge position.
-bottom _y_
Bottom edge position.
-width _w_
Output width.
-height _h_
Output height.
-pad
Pad with black if outside.

FAQ

What is the pamcut command used for?

pamcut extracts a rectangular region from a PAM or PNM image. Coordinates can be specified from any corner using combinations of left/right and top/bottom.

How do I run a basic pamcut example?

Run `pamcut [x] [y] [width] [height] [input.pam] > [output.pam]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -left _x_ do in pamcut?

Left edge position.