-
Notifications
You must be signed in to change notification settings - Fork 59
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
Feature request: (nice to have) output should extend ImageData #300
Comments
I haven't used ImageData, so resvg-js is mostly missing See also: #123 |
Note: This structure is available in the node-related canvas library. |
resvg currently always uses the sRGB color space. See: linebender/resvg#629 |
Please see that having #304 is the solution to your needs? |
ping @yjutard |
Thanks @yisibl
So it seems the current "pixels" format is OK ✅ My comment was about the data shape. Instead of inventing a new one, suggestion to use a "standard" one. All good, not critical since the conversion is trivial. This issue can serve as doc. Feel free to close it! |
Hi, thanks for this lib that looks great! (I'm still evaluating)
I'm trying to pass the output to another lib, which requires an ImageData input:
Looking at the output of resvg-js, it looks extremely similar:
My suggestion is to switch the output of resvg-js to the standard API ImageData or provide a conversion function, ex.
toImageData()
The text was updated successfully, but these errors were encountered: