This is an archival copy of the Visualization Group's web page 1998 to 2017. For current information, please vist our group's new web page.

One-Step JPEG-from-PS Creation

There are occasions where your visualization or analysis package will create a PostScript file, and the PostScript file is located on a NERSC machine, but you want to look at it on your remote workstation. Many times, these PostScript files will be large and complex resulting in excruciatingly slow rendering times. One thing you can do to accelerate the process is to convert the PostScript file to a raster image file then display the raster image instead. This will save a lot of time by reducing the amount of back-and-forth communication between NERSC and your workstation.

This example shows how to generate a JPEG raster file from a PostScript file in one step using "gs" (GhostScript):

	% gs -dBATCH -sOutputFile=myfile.jpg -sDEVICE=jpeg myfile.ps

There are many other output format options available from gs. Refer to the gs manual page for more information.

Once you have created the JPEG file, you can use any of the raster image display utilities provided on NERSC platforms to display the image on your desktop.