Coder Social home page Coder Social logo

Comments (2)

0xC0000054 avatar 0xC0000054 commented on May 30, 2024 1

That HDR image is 16-bits-per-channel. GIMP natively supports 16 and 32 bits-per-channel images.
I am not sure what the other applications do when loading it.

I do not think that I have any control over this. The plugin tells libjxl that it wants 8-bits-per-channel output, and libjxl provides it.
How libjxl converts HDR data to 8-bits-per-channel is a question for the libjxl repository.

from pdn-jpegxl.

o-l-a-v avatar o-l-a-v commented on May 30, 2024

I did some testing with djxl, latest build from here:

djxl.exe reported its' version as djxl v0.9.0 96d76a3.

I used jxlinfo.exe .\..\input.jxl, it said:

JPEG XL file format container (ISO/IEC 18181-2)
JPEG XL image, 1638x2048, lossy, 16-bit RGB
Color space: RGB, D65, Rec.2100 primaries, PQ transfer function, rendering intent: Perceptual
Uncompressed Exif metadata: 818 bytes
Brotli-compressed XML  metadata: 5664 compressed bytes
unknown box: type: "hrgm" size: 147802
layer: full image size, name: "main"

It says "Rec.2100" so I first tried with --color_space=RGB_D65_202_Per_PeQ --bits_per_sample=8 but it did not produce expected results. I then opened the JXL file in GIMP and looked at the metadata, it said Exif.Photo.ColorSpace: sRGB, which led me tro try the following:

  • djxl .\..\input.jxl .\..\out.png --bits_per_sample=8 --color_space=RGB_D65_SRG_Per_SRG

It created something that looks very close to the reference JPG image, also when opening it in in Paint.NET.

Here is the output PNG from above command:

Click to expand

out


Assumption: djxl can produce results that looks alright in Paint.NET, but then one have to feed it what color space to use?

from pdn-jpegxl.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.