From fcb23c5a7a72a596804d3ffc63f313c538ce4525 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sun, 16 Aug 2020 20:52:08 +0000 Subject: miscellaneous update git-svn-id: http://svn.code.sf.net/p/netpbm/code/userguide@3921 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- pnmcrop.html | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/pnmcrop.html b/pnmcrop.html index e2282d1f..b2f6968a 100644 --- a/pnmcrop.html +++ b/pnmcrop.html @@ -258,7 +258,8 @@ fails if there is no apparent background color in the original image
program fails, with explanatory message (default)
pass -
no modification to image +
Output image is the same as the input image. + -margin has no effect.
minimize
output is a single row, column, or pixel (of the background color). @@ -267,12 +268,25 @@ fails if there is no apparent background color in the original image original width. If you crop only horizontally, it is a single column, of the original height. - The background can be more than one color when you specify +

This is a somewhat incongruous result; the mathematically consistent + result of cropping the background from an image that is entirely + background would be an image with no pixels at all. But such a thing + does not exist in the Netpbm formats (and you probably wouldn't want + it anyway, because whoever processes this output may not tolerate + that). + +

The background can be more than one color when you specify -closeness, so it matters which row, column, or pixel remains. If you crop on the top and not bottom, it is the last row that remains. If you crop on both the top and bottom, it is the middle row that remains. The other cases follow similarly. +

If you specify a margin (-margin), the output image consists + entirely of the margins; there is no single row, column, or pixel + between the margins. So with -margin, the incongruity + mentioned above does not exist. But before Netpbm 10.92 (September + 2020), -margin was ignored with -blank-image=minimize. +

maxcrop
This odd function selects a hypothetical cropping which is not even possible, and therefore is valid only with -reportfull or -- cgit 1.4.1