Page 1 of 1

Read from stdin

Posted: Thu May 13, 2004 3:20 am
by crazytb
Is it possible to XnView read an image from "standard input" (stdin)?

I thought about a good workaround to "screen capturing" problem, but I will need XnView reading from standard input. My idea is simple. just run this on terminal:

$ sleep 2; xwd | xnview -

Where '-' would mean "read from stdin", just like most Linux utilities.

Above line does mean: wait 2 seconds, then, run xwd (X Window Dump) to capture the image. The output of xwd is redirected to input of XnView, which will open the image.

Re: Read from stdin

Posted: Sat May 15, 2004 12:26 pm
by xnview
crazytb wrote:Is it possible to XnView read an image from "standard input" (stdin)?

I thought about a good workaround to "screen capturing" problem, but I will need XnView reading from standard input. My idea is simple. just run this on terminal:

$ sleep 2; xwd | xnview -

Where '-' would mean "read from stdin", just like most Linux utilities.

Above line does mean: wait 2 seconds, then, run xwd (X Window Dump) to capture the image. The output of xwd is redirected to input of XnView, which will open the image.
You can use nview with stdin
Pierre.

Re: Read from stdin

Posted: Sun May 16, 2004 3:44 am
by crazytb
xnview wrote:You can use nview with stdin
You mean xwd | nview -in xwd stdin. This works, but I want XnView functionality (toolbars, save, filters...), which nview does not have.