1Pamfixtrunc User Manual(0)                          Pamfixtrunc User Manual(0)
2
3
4
5       pamfixtrunc was replaced in Netpbm 10.66 (March 2014) by pamfix(1).
6
7       pamfix  with  a -truncate option is the same thing as pamfixtrunc.  But
8       pamfix has other options to repair other kinds of corruption.
9
10       Another change that came with Netpbm 10.66 is that  an  invalid  sample
11       value  (a  value  greater  than  the  maxval  the image declares in its
12       header) is considered by the common Netpbm image reading  facility  (in
13       libnetpbm)  to be unreadable, which means the file is essentially trun‐
14       cated.  In older Netpbm, the invalid sample  value  propagates  to  the
15       output  in a program such as pamfixtrunc.  Thus, in older Netpbm a file
16       with 100 rows and an invalid sample value in the  3rd  row  would  pass
17       through  pamfixtrunc  unchanged.  But in Netpbm 10.66, pamfix -truncate
18       with the same input would produce an output image  with  only  2  rows.
19       While  it  is  not  possible  in  10.66  to cause pamfix to generate an
20       invalid Netpbm image, you can use -clip and  -changemaxval  options  to
21       avoid truncating the file in a case like this.
22
23       You  should  not  make  any new use of pamfixtrunc and if you modify an
24       existing use, you should upgrade to pamfixtrunc.  But note that if  you
25       write  a  program that might have to be used with very old Netpbm, pam‐
26       fixtrunc is the only way to do that.
27

DOCUMENT SOURCE

29       This manual page was generated by the Netpbm tool 'makeman'  from  HTML
30       source.  The master documentation is at
31
32              http://netpbm.sourceforge.net/doc/pamfixtrunc.html
33
34netpbm documentation                                Pamfixtrunc User Manual(0)
Impressum