OOMMF Home next up previous contents index
Next: Making Data Tables from Up: Command Line Utilities Previous: Command Line Utilities

Bitmap File Format Conversion: any2ppm

The any2ppm program converts bitmap files of various formats into the Portable Pixmap (PPM) P3 (text) format. Supported input formats are PPM, BMP, and GIF. Additional formats may be available if the Tcl/Tk Img package is installed on your system. (Note: OOMMF support for BMP requires Tk 8.0 or later.)

The any2ppm launch command is:

tclsh oommf.tcl any2ppm [standard options] [-noinfo] \
   [-o outfile] [infile ...]
Suppress writing of progress information to stderr.
-o outfile
Write output to outname; use ``-'' to pipe output to stdout. The default is to create a new file by stripping the extension, if any, off of each input filename, and appending .ppm. If the generated filename already exists, a ``-000'' or ``-001'' ... suffix is appended. If the input is coming from stdin, i.e., there is no input filename, then the default output is to stdout. Note that if outname is specified, then all output will go to this one file; in this case it is unlikely that one wants to specify more than one input file.
infile ...
List of input files to process. If none, or if an infile is the empty string, then read from stdin.

Tk Requirement: any2ppm uses the Tk image command in its processing. This requires that Tk be properly initialized, which in particular means that a valid display must be available. This is not a problem on Windows, where a desktop is always present, but on Unix this means that an X server must be running. The Xvfb virtual framebuffer can be used if desired. (Xvfb is an X server distributed with X11R6 that requires no display hardware or physical input devices.)

OOMMF Home next up previous Contents index

OOMMF Documentation Team
October 30, 2002