[Thread Prev][Thread Next][Index]

Re: [ferret_users] how to make big picture and 2 separate pictures by one script

Otherwise use Fprint to make a ps => pdf. That is a vector graphic that can be resized indefinitely. Most image display software can then export to jpg, png, etc at any resolution.
A concrete example based on gs (Ghostscript) and convert (ImageMagick), is

$ cat myscript.jnl
use levtitus_climatology
shade temp[k=1]

$ ferret -batch myscript.ps -script myscript.jnl
$ gs -q -dNOPAUSE -dBATCH -sDEVICE=pnmraw -r300x300 -sOutputFile=- myscript.ps | convert - myscript.gif

I get a 2550x3300 pixels image.

You can also crop and rotate the image by piping pnm commands (Netpbm)
$ gs -q -dNOPAUSE -dBATCH -sDEVICE=pnmraw -r300x300 -sOutputFile=- myscriopt.ps | pnmcrop | pnmflip -r270 | convert - myscript.gif

Hope this will help you.

Ghostscript:  http://pages.cs.wisc.edu/~ghost/
ImageMagick: http://www.imagemagick.org
Netpbm: http://netpbm.sourceforge.net/


[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement