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

how to get the raw 16 bit luminance data buffer from tiff object ? #55

Open
zy4944796 opened this issue Jul 14, 2020 · 0 comments
Open

Comments

@zy4944796
Copy link

Good day sir:
My trouble is about tiff format that be transformed by the function tiff.toCanvas.
The type of my tiff image is 16 bit grayscale, which the color format is luminance.
I defined a tiff object from a buffer like this :
var tiff = new Tiff({buffer: result.target.result});
var canvasTiff = tiff.toCanvas();
When I called tiff.toCanvas() function , I found the type of the tiff data which should be 16 bit grayscale was transformed to 8bit *4 RGBA type.
I don't know how to turn it back to 16 bit luminance;

Can you help me to get the raw image data buffer from the tiff object?

@zy4944796 zy4944796 changed the title how to get the raw data buffer from tiff object ? how to get the raw 16 bit luminance data buffer from tiff object ? Jul 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant