Page 1 of 1

Problem with outputting JXR to STDOUT

Posted: Tue Jan 08, 2019 8:58 pm
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!

Re: Problem with outputting JXR to STDOUT

Posted: Tue Jan 08, 2019 10:14 pm
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.

Re: Problem with outputting JXR to STDOUT

Posted: Wed Jan 09, 2019 4:46 am
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.

Re: Problem with outputting JXR to STDOUT

Posted: Wed Jan 09, 2019 7:28 am
by cday
Pierre?

Re: Problem with outputting JXR to STDOUT

Posted: Thu Jan 10, 2019 12:14 pm
by xnview
the JPEGXR format can't export on stdout, only on a file