Debian Codegraph @

upstream/debian-unstable/man1/pamfixtrunc.1

raw
1 \
2 .\" This man page was generated by the Netpbm tool 'makeman' from HTML source.
3 .\" Do not hand-hack it! If you have bug fixes or improvements, please find
4 .\" the corresponding HTML page on the Netpbm website, generate a patch
5 .\" against that, and send it to the Netpbm maintainer.
6 .TH "Pamfixtrunc User Manual" 1 "" "netpbm documentation"
7
8 .SH NAME
9
10 pamfixtrunc - replaced by pamfix
11
12 .SH DESCRIPTION
13 .PP
14 This program is part of
15 .BR "Netpbm" (1)\c
16 \&.
17 .PP
18 \fBpamfixtrunc\fP was replaced in Netpbm 10.66 (March 2014) by
19 .BR "pamfix" (1)\c
20 \&.
21 .PP
22 \fBpamfix\fP with a \fB-truncate\fP option is the same thing as
23 \fBpamfixtrunc\fP. But \fBpamfix\fP has other options to repair other
24 kinds of corruption.
25 .PP
26 Another change that came with Netpbm 10.66 is that an invalid sample value
27 (a value greater than the maxval the image declares in its header) is
28 considered by the common Netpbm image reading facility (in libnetpbm) to be
29 unreadable, which means the file is essentially truncated. In older Netpbm,
30 the invalid sample value propagates to the output in a program such as
31 \fBpamfixtrunc\fP. Thus, in older Netpbm a file with 100 rows and an invalid
32 sample value in the 3rd row would pass through \fBpamfixtrunc\fP unchanged.
33 But in Netpbm 10.66, \fBpamfix -truncate\fP with the same input would produce
34 an output image with only 2 rows. While it is not possible in 10.66 to
35 cause \fBpamfix\fP to generate an invalid Netpbm image, you can
36 use \fB-clip\fP and \fB-changemaxval\fP options to avoid truncating the
37 file in a case like this.
38 .PP
39 You should not make any new use of \fBpamfixtrunc\fP and if you modify an
40 existing use, you should upgrade to \fBpamfixtrunc\fP. But note that if you
41 write a program that might have to be used with very old
42 Netpbm, \fBpamfixtrunc\fP is the only way to do that.
43 .SH DOCUMENT SOURCE
44 This manual page was generated by the Netpbm tool 'makeman' from HTML
45 source. The master documentation is at
46 .IP
47 .B http://netpbm.sourceforge.net/doc/pamfixtrunc.html
48 .PP