Puzzle image (X11)
From Just Solve the File Format Problem
(Difference between revisions)
(Created page with "{{FormatInfo |formattype=electronic |subcat=Graphics |extensions={{ext|cm}}, {{ext|pzl}} |released=~1988 }} Some distributions of X-Windows include a program named "puzzle", w...") |
(→Format) |
||
Line 10: | Line 10: | ||
== Format == | == Format == | ||
− | A puzzle image uses a simple uncompressed 8-bit paletted format. There is a | + | A puzzle image uses a simple uncompressed 8-bit paletted format. There is a 9-byte header, then the palette, then the pixels. |
== Specifications == | == Specifications == |
Revision as of 21:39, 22 July 2014
Some distributions of X-Windows include a program named "puzzle", which is an implementation of the "15 puzzle" sliding tile game. It was written by Don Bennett of HP Labs.
Using the "-picture
" option, a custom bitmap image may be used on the tiles. This article is about the format of the file containing that custom image. It has been given various names such as X11 puzzle file or Unix Puzzle 8-bit Bitmap.
Contents |
Format
A puzzle image uses a simple uncompressed 8-bit paletted format. There is a 9-byte header, then the palette, then the pixels.
Specifications
The format is described in a comment in the picture.c file from the source code.
Software
- Netpbm: ppmtopuzz (write only)
- XnView (apparently requires the file extension to be ".pzl")
- puzzle source code and man page