Package: netpbm
Version: 2:10.0-12
Severity: normal

The option is actually '-minneighbor' in the source. Ironically since pbmclean
supports abbreviated options omitting any positive number of letters off the
end of the suggested '-minneighbors' works.

The man page also says the -N form was removed in December 2001 when it's
actually still there. Here's a patch to the man page to fix these mistakes and
clarify it a bit.

Andrew

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.29 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages netpbm depends on:
ii  libc6                   2.9-7            GNU C Library: Shared libraries
ii  libjpeg62               6b-14            The Independent JPEG Group's JPEG 
ii  libnetpbm10             2:10.0-12        Shared libraries for netpbm
ii  libpng12-0              1.2.35-1         PNG library - runtime
ii  libtiff4                3.8.2-11         Tag Image File Format (TIFF) libra
ii  zlib1g                  1:1.2.3.3.dfsg-3 compression library - runtime

Versions of packages netpbm recommends:
ii  ghostscript-x [gs-aladdin] 8.64~dfsg-1.1 The GPL Ghostscript PostScript/PDF

netpbm suggests no packages.

-- no debconf information
--- pbmclean.1.orig     2003-08-21 16:28:39.000000000 +0100
+++ pbmclean.1  2009-05-22 07:23:36.000000000 +0100
@@ -5,7 +5,7 @@
 
 .SH SYNOPSIS
 .B pbmclean 
-.RB [ -minneighbors=\fIN\fR ]
+.RB [ -minneighbor=\fIN\fR ]
 .RB [ -black | -white ]
 .RI [ pbmfile ]
 
@@ -13,16 +13,9 @@
 two hyphens instead of one.  You can separate an option name from its value
 with white space instead of an equals sign.
 
-Before December 2001,
-.B pbmclean
-accepted 
-.BI - N
-instead of
-.BR -minneighbors .
-
 .SH DESCRIPTION
 .B pbmclean
-cleans up a PBM image of random specs.  It reads a PBM image as input
+is designed to clean up "snow" on bitmap images. It reads a PBM image as input
 and outputs a PBM that is the same as the input except with every
 pixel which has less than
 .I N
@@ -32,26 +25,22 @@
 .I N
 is 1 - only completely isolated pixels are flipped.  
 
-(A value of 
-.I N
-greater than 8 generates a completely inverted image (but use
-.B pnminvert
-to do that) -- or a completely white or completely black image with 
-the
-.B -black
-or 
-.B -white
-option).
-
 .B pbmclean
 considers the area beyond the edges of the image to be white.  (This
 matters when you consider pixels right on the edge of the image).
 
-You can use
-.B pbmclean 
-to clean up "snow" on bitmap images.
-
 .SH OPTIONS
+.TP 
+.B -minneighbor=\fIN\fR
+Change pixels with less than N identical neightbours. A value of 
+.I N 
+greater than 8 generates a completely inverted image (but use 
+.B pnminvert
+to do that)
+.TP
+-\fIN\fR
+Legacy form of
+.B -minneighbor=\fIN\fR
 .TP
 .B -black
 .TP

Reply via email to