CmdID

CmdID / Commands

pnmcrop

Crop PNM images. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Remove white borders on a PNM image

pnmcrop -white path/to/image.pnm >path/to/output.pnmIdentify

Remove borders of the specified color that are on the top and left side of the image

pnmcrop -bg-color color -top -left path/to/image.pnm >path/to/output.pnmIdentify

Determine the color of the borders to be removed by the color of the pixel in the specified corner

pnmcrop -bg-corner topleft path/to/image.pnm >path/to/output.pnmIdentify

Leave a border with a width of n pixels. Additionally, specify the behavior if the image is entirely made out of background

pnmcrop -margin n -blank-image pass path/to/image.pnm >path/to/output.pnmIdentify