Problem with outputting JXR to STDOUT

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

Moderators: XnTriq, helmut, xnview

courtneypattison
Posts: 2
Joined: Tue Jan 08, 2019 8:32 pm

Problem with outputting JXR to STDOUT

Post by courtneypattison »

I am able to output to STDOUT with conversions to JPEG and TIFF, but I can't seem to do it for JXR. For example, the following result in bitstreams in STDOUT:

Code: Select all

$ nconvert -quiet -overwrite -out jpeg -o stdout path/to/file.png
$ nconvert -quiet -overwrite -out tiff -o stdout path/to/file.png
However, I get mixed results when trying to convert to JXR. If I'm trying to convert a PNG, I get:

Code: Select all

$ nconvert -quiet -overwrite -out jxr -o stdout path/to/file.png
 Using alpha_mode = 1
If I'm trying to convert a JPEG or TIFF, I get the a file named stdout with the converted content.

Code: Select all

$ nconvert -quiet -overwrite -out jxr -o stdout path/to/file.jpg
$ nconvert -quiet -overwrite -out jxr -o stdout path/to/file.tif
Any help would be amazing!
cday
XnThusiast
Posts: 4186
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Problem with outputting JXR to STDOUT

Post by cday »

Not sure if I can help, but:

If alpha_mode is listed as a switch [I don't see it in the help file for NConvert 7.00, but it might have been added recently] then:

1. The likely correct code would be alpha_mode 1

2. That term would normally be placed before the source file, which is always the last term on the right.
courtneypattison
Posts: 2
Joined: Tue Jan 08, 2019 8:32 pm

Re: Problem with outputting JXR to STDOUT

Post by courtneypattison »

Sorry, I wrote that poorly, the

Code: Select all

 Using alpha_mode = 1
is what is returned to STDOUT when I run

Code: Select all

$ nconvert -quiet -overwrite -out jxr -o stdout path/to/file.png
That output only gets returned to STDOUT when I try to convert a PNG to JXR. JPG to JXR and TIFF to JXR create a file named stdout. In all cases, the JXR file is not returned to STDOUT.
cday
XnThusiast
Posts: 4186
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Problem with outputting JXR to STDOUT

Post by cday »

Pierre?
User avatar
xnview
Author of XnView
Posts: 44922
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Problem with outputting JXR to STDOUT

Post by xnview »

the JPEGXR format can't export on stdout, only on a file
Pierre.