This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
>From: address@hidden (Chris Hennon) >Organization: . >Keywords: 200003212035.NAA28800 >Can you control the size of gifs in gempak the same as you can with xw? >The image degrades significantly when I try to shrink it using xv. > >Chris > > Chris, Yes, the same x;y attributes to the device driver work for gf as well as xw. For instance, DEVICE=gf|plot.gif|300;200 The imagemagick program "convert" generally does a better job of resizing as compared to xv since it resamples the image. However, in resampling the image, the number of colors used increases since where previously you had a red line on a black background, you would now have many shades of red. The convert program does have a -colors flag that lets you control how many colors are used in the image. The severe degredation in xv or browsers is generally because they just take every Nth pixel of the original image instead of computing a shade of the surrounding pixels that get collapsed into the singular new pixel. Steve Chiswell