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

Passing a buffer to getPixels can result in truncated image data #43

Open
roborourke opened this issue Oct 29, 2018 · 0 comments
Open

Comments

@roborourke
Copy link

I'm not sure if it's technically an issue with this library or something else but here goes:

I'm using sharp (the nodejs libvips binding) to perform some image manipulation like resizing / cropping etc.

I read the image file from disk into sharp, then output the resized image to a buffer which is returned via a node http server. I'm trying to use a combination of the get-pixels, apply-cube-lut and save-pixels packages to add a colour grading step.

The problem is that the pixels data I get in the getPixels callback is truncated and I only see the top 5th / 4th of the original image transformed, the rest is black. Do you have any suggestions on where to look to fix this?

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