-
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
Trying to modify ImageData in PDF: FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal. #1853
Labels
Comments
It's not possible to work with image data (pixel values) for a PDF or SVG canvas. #1961 will make this throw an error instead of crashing the process. Thanks for finding the bug. |
zbjornson
added a commit
that referenced
this issue
Jan 22, 2022
zbjornson
added a commit
that referenced
this issue
Jan 22, 2022
This was referenced Jun 13, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The error comes when attempting to retrieve and modify an ImageData object in a canvas of type
PDF
.It works fine for canvases with only dimensions provided as parameters.
Issue or Feature
Retrieving
ImageData
using.getImageData
, modifying it, and putting it back fails for canvases of typePDF
.Steps to Reproduce
Your Environment
npm list canvas
oryarn list canvas
): 2.8.0The text was updated successfully, but these errors were encountered: