Re: Fw: PNG Output: Canvas limited to smaller image side?

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Thu Dec 29 2011 - 17:08:44 MST

A minor addition to Dave and Andy's comments.

You can invoke the 'convert' from within an NCL script via the 'system'
procedure

   pltName = "example"
   pltDir = "./"

   pltPath = pltDir+pltName
   wks = gsn_open_wks("ps", pltPath)

       :

   system("convert -trim -bordercolor white -border 5x " \
         + pltPath+".ps "+ pltPath+".phg")

   system ("rm "+pltPath+".ps") ; remove ps file

On 12/29/2011 04:50 PM, Dave Allured wrote:
> convert -trim +repage in.png out.png

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Dec 29 17:08:52 2011

This archive was generated by hypermail 2.1.8 : Wed Jan 04 2012 - 10:18:09 MST