SSIMULACRA2 not reading jxl photos

Open
#16 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp

Research direction

Start by reproducing ssimulacra2 input.png output.jxl with the reported libjxl-enabled build and inspect the image-loading path used for output.jxl. Improve the diagnostic output so the failed JPEG XL load reports its underlying reason, then verify the message while comparing a PNG with a JPEG XL image.

Written by the indexing model from the issue text.

Description

I built ssimulacra with libjxl support:

ldd ssimulacra2
        linux-vdso.so.1 (0x00007fb2ad75e000)
        libjxl.so.0.12 => /root/tools/ssimulacra2/libjxl/build/lib/libjxl.so.0.12 (0x00007fb2ad000000)
        libjpeg.so.62 => /lib/x86_64-linux-gnu/libjpeg.so.62 (0x00007fb2ad5e6000)
        libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007fb2ad5ae000)
        libjxl_cms.so.0.12 => /root/tools/ssimulacra2/libjxl/build/lib/libjxl_cms.so.0.12 (0x00007fb2ad57a000)
        libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fb2acc00000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fb2acf10000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fb2ad54b000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb2aca0b000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fb2ad760000)
        libbrotlidec.so.1 => /root/tools/ssimulacra2/libjxl/build/third_party/brotli/libbrotlidec.so.1 (0x00007fb2ad53c000)
        libbrotlienc.so.1 => /root/tools/ssimulacra2/libjxl/build/third_party/brotli/libbrotlienc.so.1 (0x00007fb2ac950000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fb2ad51a000)
        libbrotlicommon.so.1 => /root/tools/ssimulacra2/libjxl/build/third_party/brotli/libbrotlicommon.so.1 (0x00007fb2ad4f7000)

However when I try to compare a png to a jpeg xl I get this error:

ssimulacra2 input.png output.jxl
Could not load distorted image: output.jxl

Any way I could get a bit more logs on what exactly fails?

Dominant language
C++
Stars
324
Forks
12
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cloudinary/ssimulacra2

All issues in cloudinary/ssimulacra2

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.