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

32-bit support #13

Open
roniemartinez opened this issue May 31, 2013 · 1 comment
Open

32-bit support #13

roniemartinez opened this issue May 31, 2013 · 1 comment

Comments

@roniemartinez
Copy link
Owner

I am having problem converting 32-bit depth into 8-bit depth. It seems that I can get the image's "silhouette" using the formula
value_8bit = value_32bit * (qPow (2, 8) - 1) / (qPow(2, 32) - 1)

But if I multiply it again with (qPow (2,8) -1) or 255, the image is almost close, at least at "grayscale" mode. I can't find any references on the conversion.

@roniemartinez
Copy link
Owner Author

Unfortunately, I was wrong. Just found out that 32-bit depth psd is HDRI and needs "tone mapping". I can't find any "lightweight' library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant