libjxl / libjxl

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

cjxl fails encoding exr file #1804

Open andrius4669 opened 2 years ago

andrius4669 commented 2 years ago

Describe the bug the file from an old issue from gitlab https://gitlab.com/wg1/jpeg-xl/-/issues/215 seems to be still failing to encode compressing https://mega.nz/file/gExDAQRI#O52UgV1bpfNLIol09egKKtZ1tvhKo7ch1V0v3UGJJcM results in no visible error but it fails and exits with error code 1

To Reproduce Steps to reproduce the behavior: download the file & run cjxl -v 20210424_201012.exr 20210424_201012.jxl

Expected behavior it either converts properly or fails with some error message

Screenshots

% cjxl -v 20210424_201012.exr 20210424_201012.jxl
JPEG XL encoder v0.8.0 f7c10956 [AVX2]
Getting pixel data.
% echo $?
1
% stat 20210424_201012.jxl
stat: cannot statx '20210424_201012.jxl': No such file or directory

Environment

Additional context none

mo271 commented 2 years ago

When not compiling "release" but "opt", one gets in addition:

./tools/cjxl_main.cc:583: JXL_FAILURE: Codecs failed to decode input.

I haven't looked into what is actually causing this failure for this particular exr file.