From 97efa5ff63bc672cc6595ec4ada5a70e0b3edadc Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sun, 14 Apr 2019 23:29:38 +0000 Subject: miscellaneous update git-svn-id: http://svn.code.sf.net/p/netpbm/code/userguide@3598 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- pnmcrop.html | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'pnmcrop.html') diff --git a/pnmcrop.html b/pnmcrop.html index b156b1d8..ef5211f3 100644 --- a/pnmcrop.html +++ b/pnmcrop.html @@ -2,7 +2,7 @@ Pnmcrop User Manual

pnmcrop

-Updated: 29 March 2019 +Updated: 14 April 2019
Table Of Contents @@ -68,8 +68,18 @@ with -sides.

By default, pnmcrop chops off any stripe of background color it finds, on all four sides. You can tell pnmcrop to remove only specific borders with the -left, -right, --top, and -bottom options. - + -top, and -bottom options. + +

But note that pnmcrop's determination of the background color is +independent of which edges you crop, which may not be intuitive. For example, +imagine an image with a blue border at the top and a black border at the +bottom and you say to crop the bottom (-bottom). You may have expected +to crop the black border, but you actually won't crop anything, +because pnmcrop considers the background color to be whatever color the +top two corners are, which is blue, and there is no blue at the bottom of the +image. If you do want pnmcrop to take the background color from the +edges being cropped, use -bg-corner. +

If you want to leave some border, use the -margin option. It will not only spare some of the border from cropping, but will fill in (with what pnmcrop considers the background color) if necessary @@ -310,7 +320,7 @@ The output is a single line per image, like in this example:

  • The color pnmcrop took to be the background color, like "rgb-255:10/0/255" (This is a format recognized by - the pnm_parsecolor() + the pnm_parsecolor() library routine). The maxval in the color specification is the maxval of the image. @@ -318,6 +328,8 @@ The output is a single line per image, like in this example: used, in floating point decimal. +

    You cannot use -borderfile together with this option. +

    This option was new in Netpbm 10.86 (March 2019).

    -reportsize @@ -325,6 +337,8 @@ The output is a single line per image, like in this example: This is like -reportfull, but reports only the left, right, top, bottom, width, and height. +

    You cannot use -borderfile together with this option. +

    This option was new in Netpbm 10.86 (March 2019).

    -verbose -- cgit 1.4.1