Re: Ways to output image to standard out

From: Harold Chan <cmkgroup_at_nyahnyahspammersnyahnyah>
Date: Tue Apr 17 2012 - 08:55:29 MDT

Hi Rick,

I have tried this before, but no luck.

Rick Brownrigg <brownrig@ucar.edu> 於 2012年4月16日 上午12:15 寫道:

> 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 Tue Apr 17 08:55:49 2012

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