geotiffjs / geotiff.js

geotiff.js is a small library to parse TIFF files for visualization or analysis. It is written in pure JavaScript, and is usable in both the browser and node.js applications.
https://geotiffjs.github.io/
MIT License
859 stars 179 forks source link

`createImageBitmap` is not available in older browsers #369

Open alanaberdeen opened 1 year ago

alanaberdeen commented 1 year ago

Hi,

Are there any details on browser compatibility? I'm having issues with older versions of Safari, 16.3 and older it seems, where createImageBitmap is not available.

https://github.com/geotiffjs/geotiff.js/blob/f15d7709efd5e519dc2834386305218208cecd9c/src/compression/webimage.js#L13

I've attempted to polyfill via createImageBitmap.js and similar with no luck - Geotiff.js still can't access the function.

Any advice on workarounds to support older browsers appreciated!

Thanks!