MODULE NAME : Multiformat write VERSION : 2.0 DATE : June 19, 1994 INPUTS : image 2D 4-vector byte PARAMETERS : filename file browser image file format choice compression choice (None, unix compress, gzip) overwrite boolean(protection/overwrite) MODULE DESCRIPTION : This module writes an image to disk from AVS in a variety of formats. Some of the formats which this module supports are from San Diego Supercomputing Center's image tools package, others are supported from John Cristy's ImageMagick package. Depending on how the module is configured, it can write about 30 to 40 image formats. This module contains a superset of the formats in the WRITE_ANY_IMAGE module, with several new formats added and improved support for several of the original file types. Please note that this module calls several executable files, including imconv, and convert, and gzip. Platform specific binaries for several of these programs are available from the IAC ftp site with this module. Source code for these programs is also available on the internet. See below, or the file multiio.h for further details on the sources for this module's tools. [ Probably it will be most convient to find those tools that you don't already have at the IAC, where the following tools are stored in one large compressed tar file: GhostScript2.6.1 IMagickExtended SDSC_Image_Tools gzip-1.2.4 netpbmplus The address of this compressed tar file is avs.ncsc.org:/misc_tools/multiio_tools/multiio_tools.tar.Z This file is ~ 11MB in size. - Steve Thorpe avs@ncsc.org ] NEW FEATURES : This module is a retread of WRITE_ANY_IMAGE, written by Terry Myerson and Steve Thorpe at the International AVS Center. It has several new image formats added (denoted with "+" below), several changed (denoted with "*"), as well as the following features: No temp files are written to disk (except for compression). The conversions are now all done in memory, which is usually much faster and reduces disk wear. Avs .x images are written without unnecessary conversion. Compressed and Gziped files are written either by appending .Z (for unix compress), or .gz (for Gzip) to the file name. Alternately, control pannel buttons are available to compress the file (suffix is automatically generated). Files are not written except when the filename is changed. This behavior can be changed by switching off overwrite protection (boolean), whereapon all parameter and input changes will cause file writing. Any of the following image file formats can be written by this module : *bmp Microsoft Windows bitmap image file cur Microsoft Windows cursor image file *eps Adobe Encapsulated PostScript file +epsi Adobe Encapsulated PostScript Interchange format. +fits Flexible Image Transport System (monochrome only). *gif Compuserve Graphics image file hdf Hierarchical Data File icon Sun Icon and Cursor file iff Sun TAAC Image File Format +iris SGI RGB image file. (ImageMagick conversion) +jpeg JPEG/JFIF Rev. 1.02 +miff Magick image file format. (ImageMagick native format) mpnt Apple Macintosh MacPaint file +mtv Mark VanDeWettering's MTV ray tracer image format. pbm ASCII PBM Portable Bit Map (SDSC Image tools conversion) *pcx ZSoft IBM PC Paintbrush file pgm ASCII PBM Portable Gray Map (SDSC Image tools conversion) pic PIXAR picture file *pict Apple Macintosh QuickDraw/PICT file pix Alias image file pnm ASCII PBM Portable aNy Map (SDSC Image tools conversion) ppm ASCII PBM Portable Pixel Map (SDSC Image tools conversion) *ps Adobe PostScript file ras Sun Rasterfile (SDSC Image tools conversion) rgb SGI RGB image file (SDSC Image tools conversion) rla Wavefront raster image file rlb Wavefront raster image file rle Utah Run length encoded image file *rpbm binary (raw) PBM Portable Bit Map file *rpgm binary (raw) PBM Portable Gray Map file *rpnm binary (raw) PBM Portable aNy Map file *rppm binary (raw) PBM Portable Pixel Map file +sun Sun Rasterfile (ImageMagick conversion) synu SDSC Synu image file *tga Truevision Targa image file *tiff Tagged image file viff Khoros Visualization image file *x AVS X image file xbm X11 bitmap file +xpm X11 pixmap file. xwd X Window System window dump image file * = file format that has been modified from READ_ANY_IMAGE. + = file format that was not previously available with READ_ANY_IMAGE. NOTE: Formats pbm, pgm, pnm, and ppm, will write ASCII files. Formats rpbm, rpgm, rpnm, and rppm, will write binary versions. CREDITS ------- This module relies in part on the San Diego Supercomputer Center's Image Tools, which are available via anonymous ftp to ftp.sdsc.edu. For more information, send email to info@sdsc.edu. This module relies in part on John Cristy's ImageMagick programs which are available via anonymous ftp to ftp.x.org:contrib/applications/ ImageMagick/ImageMagick-3.0.tar.gz. For more information, contact John Cristy at . Also useful is the Netpbm(plus) package which contains many standalone conversions, It is available by anon ftp from ftp.x.org:R5contrib/ netpbm-1mar1994.tar.gz Compression support includes unix compress available on most platforms, and gzip, available from GNU at prep.ai.mit.edu:/pub/gnu. Portions based on the /usr/avs/examples/read_image.c example code which is provided by Advanced Visual Systems, Inc. Several contributed modules at the IAC ftp site were also visited in the process of putting this together.