-
Notifications
You must be signed in to change notification settings - Fork 9
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
No callback from resize/crop #3
Comments
It was a bug in the docs, there's no callback invoked since this lib has a synchronous API. Whenever crop() returns, that means that the operation completed. |
Thank you. So is there I way I can use the output of the new cropped file? Not the one saved as file. I need the buffer actually. I tris to get the return value from crop() but looks like it is not an image buffer. Or I missed something? |
You need to read the file Imagemagick written with fs.readFile. Bottom line is, this lib is just calling Imagemagick with the correct arguments, it never manipulates the image data. |
This is weird. I have 2 crops before i'm adding to the database, and it adds to the database before the crops are done. |
Hi there, I am resizing/cropping in collectionFS fileHandler, and experiencing an issue when I resize/crop a file, it has no callback fired. Any idea?
The text was updated successfully, but these errors were encountered: