1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
.TH PPMTOLSS16 1 LIBLSS16
.SH NAME
ppmtolss16 \- Convert a Portable Anymap (PNM) file to an LSS16 file
.SH SYNPOSIS
.B ppmtolss16
.RI "< " pnm-file
.RI "> " lss16-file
.SH DESCRIPTION
The
.B ppmtolss16
utility converts the Portable Anymap (PNM) image file
.I pnm-file
to an LSS16 image file, and stores it as
.IR lss16-file.
.PP
Despite the name
.BR ppmtolss16 ,
the
.N ppmtolss16
utility supports Portable Bitmap (PBM) and Portable Greymap (PGM)
in addition to Portable Pixmaps (PPM). Both plain (P1, P2, P3)
and raw (P4, P5, P6) files are supported.
.SH OPTIONS
None, not even
.RB \(dq -- \(dq.
.SH OPERANDS
None.
.SH STDIN
The standard input shall be the Portable Anymap file to convert.
.SH INPUT FILES
None.
.SH STDOUT
The image will be printed as an LSS16 file to the standard output.
.SH STDERR
The standard error is used for diagnostic purposes.
.SH OUTPUT FILES
None.
.SH EXIT STATUS
The following exit values are returned:
.TP
0
Successful completion.
.TP
1
The standard input is not an valid P1-P6 Portable Anymap file.
.TP
2
The image is too large to be encoded with LSS16.
.TP
3
An error occured.
.SH NOTES
The SYSLINUX implementation of the
.BR ppmtolss16
utility does used the exit valuess
.B 2
and
.BR 3 ,
but instead always returns 1 on failure.
.SH RATIONALE
The invocation syntax and the name of the utility is
inherited from the SYSLINUX implementation of
.BR ppmtolss16 .
.PP
SYSLINUX's implementation of
.BR ppmtolss16
supports forcing the colour palette, however because this
feature was poorly documented, misleading, and not generally
useful, this implementation does not support this.
.SH HISTORY
Early versions of SYSLINUX's implementation of
.BR ppmtolss16
only supported raw Portable Pixmap (P6 PPM) files
without comments.
.SH SEE ALSO
.BR lss16 (5),
.BR lss16toppm (1),
.BR liblss16 (7),
.BR syslinux (1)
|