Open
Description
The pool'd decoder worker doesn't handled rejections
https://github.com/geotiffjs/geotiff.js/blob/master/src/worker/decoder.js
https://github.com/geotiffjs/geotiff.js/blob/master/src/pool.js#L74-L87
This is highlighted when trying to use a WEBP encoded GeoTIFF via Open Layers with Safari. I assume something due to the way the data is passed from openlayers and perhaps the lack of this API https://caniuse.com/mdn-api_htmlcanvaselement_toblob_type_parameter_webp.
or just safari access control checks
At this point I'm not sure how/why but it seems to work when I render with geotiff.js directly but not via openlayers.
console shows this error:
Not allowed to load local resource: blob:null/ced499f8-0af1-475b-bec8-72769f72de4e
Cannot load blob:null/ced499f8-0af1-475b-bec8-72769f72de4e due to access control checks.
Unhandled Promise Rejection: InvalidStateError: An error occurred reading the Blob argument to createImageBitmap
I intend to come back with more information, but the root cause seemed like a worthwhile fix itself
Metadata
Metadata
Assignees
Labels
No labels