Linux Commands Examples

A great documentation place for Linux commands

lispmtopgm

convert a Lisp Machine bitmap file into pgm format


see also : pgmtolispm

Synopsis

lispmtopgm [lispmfile]


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
tifftopnm "$file"
;;
*IFF*ILBM* )
ilbmtoppm "$file"
;;
*Lisp* )
lispmtopgm "$file"
*.iff | *.iff.* | *.ilbm | *.ilbm.* )
ilbmtoppm "$file"
;;
*.lispm | *.lispm.* )
lispmtopgm "$file"
0
source
            
ilbm )
ilbmtoppm "$file"
;;
lispm )
lispmtopgm "$file"
;;
pcx )
0
source
            
tifftopnm "$file"
;;
ilbm )
ilbmtoppm "$file"
;;
lispm )
lispmtopgm "$file"

description

Reads a Lisp Machine bitmap as input. Produces a portable graymap as output.

This is the file format written by the tv:write-bit-array-file function on TI Explorer and Symbolics lisp machines.

Multi-plane bitmaps on lisp machines are color; but the lispm image file format does not include a color map, so we must treat it as a graymap instead. This is unfortunate.


bugs

The Lispm bitmap file format is a bit quirky; Usually the image in the file has its width rounded up to the next higher multiple of 32, but not always. If the width is not a multiple of 32, we don’t deal with it properly, but because of the Lispm microcode, such arrays are probably not image data anyway.

Also, the lispm code for saving bitmaps has a bug, in that if you are writing a bitmap which is not mod32 across, the file may be up to 7 bits too short! They round down instead of up, and we don’t handle this bug gracefully.

No color.


see also

pgmtolispm , pgm


author

Copyright (C) 1991 by Jamie Zawinski and Jef Poskanzer.

How can this site be more helpful to YOU ?


give  feedback