1Pamvalidate User Manual(0) Pamvalidate User Manual(0)
2
3
4
6 pamvalidate - validate Netpbm image format
7
8
10 pamvalidate
11
12
13
15 This program is part of Netpbm(1).
16
17 pamvalidate copies a Netpbm image from Standard Input to Standard Out‐
18 put, except that if there are certain violations of the image format in
19 the input, pamvalidate fails without producing any output.
20
21 This is most useful in a pipeline, before a stage you don't want to
22 start working on Netpbm input until it knows it can get all the way
23 through it. For example, assume you are converting PPM images to PNG
24 and you don't want to produce a partial PNG file under any circum‐
25 stance. If you just use pnmtopng, and the PPM input is truncated half‐
26 way through the raster, pnmtopng fails, but also produces about half of
27 a PNG file. To prevent that, pass your PPM input through pamvalidate
28 on its way to pnmtopng. Then, pamvalidate will fail, and consequently
29 the pipeline will fail, before pnmtopng has seen any input and there‐
30 fore before pnmtopng has produced any output.
31
32 These are the kinds of format violations pamvalidate detects:
33
34
35
36 · A purported sample value exceeds the declared maxval.
37
38 · The stream ends prematurely.
39
40
41 This program works on multi-image streams, producing a corresponding
42 output stream.
43
44 See pamfix for a way to salvage an invalid Netpbm image stream.
45
46
47
49 None.
50
51
52
54 pam(1) pnm(1) pamfix(1)
55
56
57
59 pamvalidate was new in Netpbm 10.66 (March 2014).
60
62 This manual page was generated by the Netpbm tool 'makeman' from HTML
63 source. The master documentation is at
64
65 http://netpbm.sourceforge.net/doc/pamvalidate.html
66
67netpbm documentation 22 March 2014 Pamvalidate User Manual(0)