Skip to content

Throws "Invalid filter algorithm" error on some PNG images #1452

@diminutivesloop

Description

@diminutivesloop

When 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions