-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Image#src=Buffer works as setter, returns "" as getter #118
Comments
i'd say a bug, it could be a bit of a gotcha in some situations to return the Buffer, but we definitely need some way to access it |
I have the same problem with getting buffer from Image but I see that 4 years later it's still not resolved :( |
This is still the case. Also when setting a base64-encoded string as |
In the setter(lib/image.js). |
@cloudsoh that works. My main concern with fixing this issue is that it increases memory usage for a somewhat unusual use case (and one that has workarounds) if we have to store a Buffer instance or |
Any news regarding this issue? |
I'm not actually sure how this should behave, but it seems reasonable that if I set an image src to be a buffer, getting src should then return the same or an equivalent buffer. Instead, it returns an empty string. Is this a bug or a feature?
The text was updated successfully, but these errors were encountered: