photostack icon indicating copy to clipboard operation
photostack copied to clipboard

Replace Pica library for resizing images

Open corbindavenport opened this issue 6 months ago • 1 comments

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.

corbindavenport avatar Mar 30 '25 05:03 corbindavenport