Options (8)
-lbooleanAdd borders of the specified sizes to the image
Example:
pnmpad {{[-l|-left]}} {{100}} {{[-ri|-right]}} {{150}} {{[-t|-top]}} {{123}} {{[-bo|-bottom]}} {{456}} {{path/to/image.pnm}} > {{path/to/output.pnm}}booleanAdd borders of the specified sizes to the image
Example:
pnmpad {{[-l|-left]}} {{100}} {{[-ri|-right]}} {{150}} {{[-t|-top]}} {{123}} {{[-bo|-bottom]}} {{456}} {{path/to/image.pnm}} > {{path/to/output.pnm}}-tbooleanAdd borders of the specified sizes to the image
Example:
pnmpad {{[-l|-left]}} {{100}} {{[-ri|-right]}} {{150}} {{[-t|-top]}} {{123}} {{[-bo|-bottom]}} {{456}} {{path/to/image.pnm}} > {{path/to/output.pnm}}booleanAdd borders of the specified sizes to the image
Example:
pnmpad {{[-l|-left]}} {{100}} {{[-ri|-right]}} {{150}} {{[-t|-top]}} {{123}} {{[-bo|-bottom]}} {{456}} {{path/to/image.pnm}} > {{path/to/output.pnm}}booleanPad the image to the specified size
Example:
pnmpad {{[-wi|-width]}} {{1000}} {{[-he|-height]}} {{500}} {{path/to/image.pnm}} > {{path/to/output.pnm}}booleanPad the image to the specified size
Example:
pnmpad {{[-wi|-width]}} {{1000}} {{[-he|-height]}} {{500}} {{path/to/image.pnm}} > {{path/to/output.pnm}}booleanPad the width of the image to the specified size, controlling the ratio between right and left padding
Example:
pnmpad {{[-wi|-width]}} {{1000}} {{[-ha|-halign]}} {{0.7}} {{path/to/image.pnm}} > {{path/to/output.pnm}}-cbooleanPad the width of the image using the specified color
Example:
pnmpad {{[-wi|-width]}} {{1000}} {{[-c|-color]}} {{red}} {{path/to/image.pnm}} > {{path/to/output.pnm}}Examples (4)
Add borders of the specified sizes to the image
pnmpad [-l|-left] 100 [-ri|-right] 150 [-t|-top] 123 [-bo|-bottom] 456 path/to/image.pnm > path/to/output.pnmPad the image to the specified size
pnmpad [-wi|-width] 1000 [-he|-height] 500 path/to/image.pnm > path/to/output.pnmPad the width of the image to the specified size, controlling the ratio between right and left padding
pnmpad [-wi|-width] 1000 [-ha|-halign] 0.7 path/to/image.pnm > path/to/output.pnmPad the width of the image using the specified color
pnmpad [-wi|-width] 1000 [-c|-color] red path/to/image.pnm > path/to/output.pnmmade by @shridhargupta | data from tldr-pages