Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q16 version? #192

Open
davidjohnstone opened this issue Jan 4, 2025 · 1 comment
Open

Q16 version? #192

davidjohnstone opened this issue Jan 4, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@davidjohnstone
Copy link

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

Hi, I'd like to use this to resize images with accurate gamma, which I would do by first converting to RGB, then resizing, then converting back to sRGB. However, using the Q8 version can result in severe colour issues because Q8 doesn't have enough precision for the conversion. Is there any chance of a Q16 version?

I'm doing:

image.colorSpace = ColorSpace.RGB;
image.resize(1200, 800);
image.colorSpace = ColorSpace.sRGB;

Which gives the same results as -colorspace RGB -resize 1200x800 -colorspace sRGB in the Q8 command line version.

Describe alternatives you've considered

No response

Additional context

No response

@dlemstra
Copy link
Owner

dlemstra commented Jan 7, 2025

Right now there are no concrete plans for a Q16 or Q16-HDRI version. This was not done because wasm is only 32-bit right now. There is a 64-bit option but that used to be experimental. It no longer is experimental so I might play around with that in the future. And then I will need to figure out how to make this work with different versions of the .wasm file.

@dlemstra dlemstra added the enhancement New feature or request label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants