On Wed, 23 Jan 2002, Dr. John W. Glendening wrote:
> Ideally ctrans could be used to directly produce a .gif raster
> (bitmap) file from the ncar cgm metafile, but that is not an available
> option so a generally used procedure is to first use ctrans to create
> a raster file in an available format (such as sun, sgi or xwd format)
> and then convert that to the .gif raster format. This requires having
> a program which can do such conversion. Below is an example of
> creating a raster plot of specified size which uses the San Diego
> Supercomputer Center's imcopy for this conversion
>
> # note that the ctrans default size is 512x512
> xsize="600"
> ysize="600"
> resolution="${xsize}x${xsize}"
> /var/ncar4.0.1/bin/ctrans -res $resolution -d sgi -outfile plot.sgi gmeta
> /usr/local/bin/imcopy -xsize $xsize -ysize $ysize plot.sgi plot.gif
A more common problem, I believe, is to add a figure caption (3-4 lines of
text below the figure) after it has been made and incorporate this into a
web page without significant loss of quality. I've tried (1) importing the
NCAR Graphics metafile, converted to EPS, into a LaTex doc where the figure
caption is added, then converting the PostScript version of this into a GIF
or JPG using ps2gif. I've also tried importing the PostScript or equivalent
PDF into a Microsoft Image program (can't recall the exact name) and also
into Adobe PhotoShop 5.0. In all cases, the resulting web image is soft
as thought a diffusion screen had been pulled over the image before viewing.
Zooming in reveals that solid black lines get translated into lines with
shadows on both sides of slightly different color. It looks like an
aliasing problem, although I don't know for sure that it actually *is*
an aliasing problem.
Several of us here at NCAR/CGD have been trying to do this for about two
years without success. Any suggestions?
Andy Mai
Andrew W. Mai
--- __o National Center for Atmospheric Research
---- _`\<,_ Boulder, CO 80307 USA mai@ucar.edu
--- (*)/ (*) http://www.cgd.ucar.edu/gds/mai/mai.html
This archive was generated by hypermail 2b29 : Wed Jan 23 2002 - 20:52:05 MST