Re: Ways to output image to standard out

From: Rick Brownrigg <brownrig_at_nyahnyahspammersnyahnyah>
Date: Sun Apr 15 2012 - 10:15:01 MDT

Hi Harold,

I'm skeptical that this would work, if for example, you plugged in "/dev/stdout" as the output filename. Among other things, the png driver is going to insist upon appending a ".png" suffix to the filename. Perhaps you could get what you want by writing to a well known named pipe (named with .png)?

Rick

On Apr 13, 2012, at 10:08 PM, Harold Chan wrote:

> Hi all,
>
> Currently, if I output an image to a file, I would write:
> wks = gsn_open_wks("png","example")
> example.png will be generated.
>
> What If I want to output it to stdout, is it possible? As I would like to use it as a CGI program.
>
> Thanks,
> Harold
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Apr 16 09:01:18 2012

This archive was generated by hypermail 2.1.8 : Fri Apr 20 2012 - 16:21:18 MDT