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.
This is a really neat library.
E.g. IE throws this error for huge images:
I'm sure the reason is maximum size restrictions of
<canvas />
:A
try/catch
arounddrawImage
should handle thrown exceptions, like at this line: https://github.com/blueimp/JavaScript-Load-Image/blob/b14e2df0a0fbcbc5ac2a44d4e399709dd69ba9a4/js/load-image-scale.js#L106Free high res images can be found here: https://effigis.com/en/solutions/satellite-images/satellite-image-samples/