stdin | stdout

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: helmut, XnTriq, xnview

Post Reply
a3
Posts: 2
Joined: Thu Jul 07, 2005 4:35 am

stdin | stdout

Post by a3 »

would like to see you support stdin and real stdout (i.e. you are currently putting licensing information in stdout, rather than putting it in stderr, for example). this would eliminate the need to deal with temp files, if, for example, i wanted to pull an image from a database, run nconvert and then pipe it directly to a web browser.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: stdin | stdout

Post by xnview »

a3 wrote:would like to see you support stdin and real stdout (i.e. you are currently putting licensing information in stdout, rather than putting it in stderr, for example). this would eliminate the need to deal with temp files, if, for example, i wanted to pull an image from a database, run nconvert and then pipe it directly to a web browser.
You have it for example:
nconvert -o stdout stdin, but this doesn't works for all formats...
Pierre.
lazerfisk
Posts: 17
Joined: Wed May 05, 2004 3:00 pm
Location: Karlstad, Sweden
Contact:

Re: stdin | stdout

Post by lazerfisk »

xnview wrote:
a3 wrote:would like to see you support stdin and real stdout (i.e. you are currently putting licensing information in stdout, rather than putting it in stderr, for example). this would eliminate the need to deal with temp files, if, for example, i wanted to pull an image from a database, run nconvert and then pipe it directly to a web browser.
You have it for example:
nconvert -o stdout stdin, but this doesn't works for all formats...

Code: Select all

C:\World of Warcraft\Screenshots>type WoWScrnShot_100905_223539.tga | nconvert -D -o stdout -out jpeg stdin > test.jpg
  Error: Can't read file (stdin)

C:\World of Warcraft\Screenshots>
That didn't go too well :) What am i doing wrong?

Cheers,
Christopher
Post Reply