Skip to content

Replace Pica library for resizing images #138

@corbindavenport

Description

@corbindavenport

PhotoStack currently uses the Pica library for resizing images. We're stuck on version 7.0, because version 7.1 and later throw this error in Firefox (and possibly other browsers):

Uncaught (in promise) Error: Pica: cannot use getImageData on canvas, make sure fingerprinting protection isn't enabled
    resize https://cdn.jsdelivr.net/npm/[email protected]/dist/pica.min.js:13
    promise callback*["/index.js"]</v.prototype.resize https://cdn.jsdelivr.net/npm/[email protected]/dist/pica.min.js:13

This will not be fixed in Pica, so the library needs to eventually be replaced with a different one or a native browser function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions