SFINX software tree - Images - ImageMagic
ImageMagic is a large collection of conversion tools and special effects that
can be applied to image files. It makes use of a few intermediate file formats:
- .pbm Portable Bitmap - bitmap, 1 bit per pixel
- .pgm Portable Gray map - gray scale, 1 byte per pixel
- .ppm Portable Pixmap - full color, 3 bytes per pixel
- .pnm Portable AnyMap - superset.
All ImageMagic programs work as filters: they read from standard input
and write to standard output (a file name argument can be read in stead of
standard input). In this way, the programs can be combined in pipes, e.g.:
tifftopnm file.tiff | pnmtops | lpr
to print a .tiff file.
Converters
Question marks denote that this conversion is of little use, since we don't
have software that depends on the output format. See the
man-pages for details.
- giftoppm GIF image
- tifftopnm TIFF image
- rasttopnm Sun raster file
- picttoppm MacIntosh PICT
- pcxtoppm PC PCX
- xbmtopbm X bitmap
and many others. Usually there is a reverse of the converters listed below.
Exceptions are those that convert to printer or terminal output formats.
- pbmto10x ?
- pbmtoascii Creates crude ASCII representation. Looks
nicer that output of bmtoa
(see XBM description)
- pbmtoatk ?
- pbmtobbnbg ?
- pbmtocmuwm ?
- pbmtoepson to print on a simple Epson printer.
- pbmtog3 ? (Group 3 FAX file)
- pbmtogem GEM .img file
- pbmtogo ?
- pbmtoicon SunView/ OpenWindows icon
- pbmtolj to print on LaserJet WITHOUT
PostScript interpreter. Don't use at the
Observatory printers !!!
- pbmtomacp MacPaint
- pbmtomgr ?
- pbmtopi3 ?
- pbmtoplot UNIX plot data (used by some programs)
- pbmtoptx Printronix printer output.
- pbmtox10bm Old X10 bitmaps (reverse can be done
by xbmtopbm)
- pbmtoxbm X11 bitmap
- pbmtoybm ?
- pbmtozinc ?
- pgmtofits FITS (grayscale).
Not necessarily useful, since intensities in an image usually have no
logical linear interpretation.
- pgmtofs ?
- pgmtolispm ?
- pgmtopbm Internal conversion between the intermediate
formats. The reverse is automatical; PBM is a subset
of PGM
- ppmtoacad AutoCad ??
- ppmtobmp Windows bitmap
- pgmtoppm Internal conversion.
- ppmtogif GIF. Can create
interlaced GIF files with -interlace option.
- ppmtoicr ?
- ppmtoilbm ?
- ppmtomap ?
- ppmtomitsu ?
- ppmtopcx PCX format (quite standard on PC)
- ppmtopgm Internal conversion.
- ppmtopi1 ?
- ppmtopict MacIntosh PICT
format. Converts only the image (not the other information a Mac normally
needs, such as icon and associated application).
- ppmtopj ? (HP PaintJet output)
- ppmtopjxl ? (HP PaintJet output)
- ppmtopuzz Creates file for the X puzzle application.
- ppmtorgb3 Create 3 separate PGM files,
one for each color (red, green and blue). By exception, this file does
not write to standard output.
- ppmtosixel ?
- ppmtotga TrueVision Targa image
- ppmtoouil Motif UIL icon
- ppmtoxpm X pixmap (used by programs that can display
colored icons).
- ppmtoyuv ?
- ppmtoyuvsplit ?
- pnmtops Creates PostScript
- pnmtorast Sun raster file
- pnmtotiff TIFF (LWZ compressed)
- pnmtoxwd X window dump (can be viewed with
xwud
Special effects
- pbmlife Uses PBM file as input to the
Life simulation (one generation). In a pipe, multiple
invocations of this program will lead to the calculation of multiple
generations.
- pbmmake Create an empty PBM file
of a certain size
- pbmmask Creates a fitting bitmap mask, i.e. a slighly
bigger version as an outline (e.g. for use as a X cursor).
- pbmreduce Reduce bitmap in size
- pbmtext Render text into a bitmap. The font can be
specified with a -font option.
- pbmupc Generates BAR code (UPC= Universal Product Code)
- ppm3d Two PPM files are combined to
red/blue 3d pixmap.
- ppmbrighten Change saturation and/or value
- ppmchange Change all pixels of one color to another.
- ppmdim Dim the brightness by given factor.
- ppmdist Maximize contrast
- ppmdither Use dithering to reduce number of colors
- ppmflash Increase brighttness by given factor.
- ppmforge Fractal
- ppmhist
- ppmmake
- ppmmix
- ppmnorm
- ppmntsc
- ppmpat
- ppmquant
- ppmquantall
- ppmqvga
- ppmrelief
- ppmshift
- ppmspread
Scripts with combined functionality
A few combinations of converters and effects are often useful, and ready-to-use
scripts are provided for those. Some of those also make use of other utilities
(such as ghostscript.
- pstogif : PostScript to
GIF converter (using gs)
- pstoppm : PostScript to
PPM converter (using gs)
- pstotiff : PostScript to
TIFF converter (using gs)
- pstoxbm : PostScript to
XBM (bitmaps)
- fitstogif : converts FITS files
to GIF images; the intensity is converted to
gray scales.
- giftofits : not very useful
- xbmtogif
- gifinterlace : make an interlaced
GIF image.
See also giftool.
- giftops
- tifftops
David.Jansen@strw.leidenuniv.nl
Last modified: Thu Mar 18 09:55:03 1999