[Thread Prev][Thread Next][Index]
Re: [ferret_users] how to make big picture and 2 separate pictures by one script
Hi Ferret users,
| 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
The last command can be simplified to
$ convert -density 300 myscript.ps myscript.gif
Of course this is much less flexible than the original method,
as demonstrated below.
| 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
Thank you for this! It's a great capability.
Regards,
Ryo
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Privacy Policy | Disclaimer | Accessibility Statement