Throws "Invalid filter algorithm" error on some PNG images
See original GitHub issueWhen attempting to generate a pdf with this image jsPDF throws an error:
Uncaught Error: Invalid filter algorithm: 100
at e.decodePixels (jspdf.min.js:286)
at Object.t.processPNG (jspdf.min.js:282)
at Object.t.addImage (jspdf.min.js:281)
I’ve created an example bin to illustrate the issue: http://jsbin.com/nujiyebamu/edit?html,js,output
Issue Analytics
- State:
- Created 6 years ago
- Comments:8
Top Results From Across the Web
Throws "Invalid filter algorithm" error on some PNG images
When attempting to generate a pdf with this image jsPDF throws an error: Uncaught Error: Invalid filter algorithm: 100 at e.
Read more >Top 10 Most Common C++ Mistakes That Developers Make
This article explains how ten of the most common C++ developer mistakes can be avoided ... Some STL algorithms can also lead to...
Read more >References - JuliaImages
Throw an error if the image has a time dimension that is not the last dimension. ... Filter a one, two or multidimensional...
Read more >Wireshark User's Guide
Display packets with very detailed protocol information. Save packet data captured. Export some or all packets in a number of capture file formats....
Read more >Magick++ API: Working with Images - ImageMagick
Depending on the constructor arguments, the Blob size , depth , magick (format) may also be specified. Some image formats require that size...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If someone still doesn’t know what to do, you can try this:
after that just use this for image rendering:
<Image src={imageBase64.dataURL} />
PullRequest #1455