libjxl / libjxl

JPEG XL image format reference implementation
BSD 3-Clause "New" or "Revised" License
2.71k stars 260 forks source link

Failed to read input from stdin #2852

Closed marcus65001 closed 2 months ago

marcus65001 commented 1 year ago

Describe the bug When I try to convert any input image, cjxl failed to read input from stdin with the error: Reading image data failed.

To Reproduce cjxl - - < in.jpg > out.jxl

cat in.jpg | cjxl - - > out.jxl

Expected behavior cjxl should read in the input from stdin and output into the stdout.

Environment

antermin commented 1 year ago

Duplicate of #542.

mo271 commented 1 year ago

Thanks for pointing out this issue! Seems like this is working on unix based systems, but still does not work on Windows. As a workaround until we have fixed it using WSL might help.

zachpoblete commented 2 months ago

309b637 fixes this.

mo271 commented 2 months ago

please re-open if the problem is reproducible at current head