]> git.draconx.ca Git - liblbx.git/blob - doc/man/lbximg.1
Add man pages for lbxtool and lbximg
[liblbx.git] / doc / man / lbximg.1
1 .Dd January 4, 2008
2 .Os liblbx
3 .Dt LBXIMG \&1 "2ooM Reference Manual"
4 .Sh NAME
5 .Nm lbximg
6 .Nd inspect and decode LBX images
7 .Sh SYNOPSIS
8 .Nm
9 .Op Fl i Ns | Ns Fl d
10 .Op Fl v
11 .Op Fl p Ar palette_file
12 .Op Fl O Ar override_file
13 .Op Fl f Ar path
14 .Op Ar frameno ...
15 .Sh DESCRIPTION
16 .Nm
17 identifies and decodes LBX image files, using
18 .Em liblbx .
19 LBX images are multi-frame, 256-colour paletted images with transparency.
20 .Nm
21 can be used to convert some or all of the frames of an LBX image to PNG.
22 .Sh OPTIONS
23 .Bl -tag -width indent
24 .It Fl i , -ident
25 Sets the operating mode to identify the image format.
26 .It Fl d , -decode
27 Sets the operating mode to decode frames to PNG.
28 .It Fl v , -verbose
29 Output additional information on standard output.
30 .It Fl f , -file Ar path
31 Read from the specified
32 .Ar path
33 instead of standard input.  If
34 .Ar path
35 is -,
36 .Nm
37 will read from standard input anyway.
38 .It Fl p , -palette Ar palette_file
39 Read the base palette from
40 .Ar palette_file .
41 In Moo2, these files are found in
42 .Pa fonts.lbx .
43 Without this option, the base palette is filled with a nice hot pink.  Colours
44 in the base palette are superseded by those in the embedded palette and the
45 override palette.
46 .It Fl O , -override Ar override_file
47 Use the embedded palette of an LBX image specified by
48 .Ar override_file
49 as the override palette.  In Moo2, this is notably used to select the player
50 colour for ship images.  Colours in the override palette supersede those in
51 both the base palette and the embedded palette.
52 .It Ar frameno ...
53 Specifies the frames to decode as a sequence of intervals, with frames indexing
54 from zero.  By default, all frames are decoded.  Multiplicity is ignored, as is
55 the order in which frames are specified.  For example:
56 .Bl -tag -width
57 .It Nm Li -d 3 6
58 Decode frames 3 and 6.
59 .It Nm Li -d 4-9
60 Decode frames 4 through 9, inclusive
61 .It Nm Li -d 6-9 1-4
62 Decode frames 1 through 9, except for frame 5.
63 .It Nm Li -d 3-
64 Decode all frames except the first 3.
65 .El
66 .El