-
Notifications
You must be signed in to change notification settings - Fork 10.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
Extracting images with node.js "Warning: Native JPEG decoding failed -- trying to recover: Image is not defined" #9603
Comments
Please note that that parameter was deprecated in PR #8350, and was subsequently removed in PR #8982. For environments without native Lines 137 to 144 in 97faedb
|
Thanks for the quick reply - that fixed the warning, but the extraction still fails:
|
Tim, not sure why this is closed. I was not trying to use
|
Here is a small test file (4 pages) |
Hi there @svenyonson ,there is a blog which could parse image from PDF successful. Hope this could help |
Unable to get this to work. Looking at other issues here, I tried adding 'disableNativeImageDecoder', but to no avail.
Error for each page is: "Warning: Native JPEG decoding failed -- trying to recover: Image is not defined"
Note: If I cut and paste this code into an interactive node.js session, it works because of
var Image = require('canvas').Image;
. But it doesn't help when running the following code as a script.The text was updated successfully, but these errors were encountered: