blueimp / JavaScript-Load-Image

Load images provided as File or Blob objects or via URL. Retrieve an optionally scaled, cropped or rotated HTML img or canvas element. Use methods to parse image metadata to extract IPTC and Exif tags as well as embedded thumbnail images, to overwrite the Exif Orientation value and to restore the complete image header after resizing.
https://blueimp.github.io/JavaScript-Load-Image/
MIT License
4.45k stars 922 forks source link

Feature request OffScreen Canvas #104

Closed kasperkamperman closed 4 years ago

kasperkamperman commented 4 years ago

You use canvas for most operations. Did you consider supporting OffScreen canvas: https://developers.google.com/web/updates/2018/08/offscreen-canvas

It's a Chrome only technology, so maybe it's too much fuss to implement (especially because it would also involve a web-worker then):

https://caniuse.com/#search=offscreencanvas

blueimp commented 4 years ago

Thanks for the suggestion. In most cases, there is only a single drawImage call (which has to be an OnScreen canvas so it can be displayed), however I've added support to use an OffScreen canvas where applicable.