-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Difference between data
, encode
and toBuffer
#894
Comments
my personal understanding is that both
|
I didn't notice I was wondering whether |
I made some checks and it seems I checked Interestingly, |
Hi, can you please clarify the difference between the three titular methods? They all return
Buffer
.data
returns raw pixels according to a comment in the TypeScript types, what format are the raw data in? RGBA/ARGB/BGRA or a different one altogether?I see both
encode
andtoBuffer
support WebP, JPEG, PNG and AVIF so I wonder what the difference is or whether they are just aliases of one another? I see the examples in the readme useencode
.Thank you!
The text was updated successfully, but these errors were encountered: