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

IE11 DOM7009: Unable to decode image at URL: 'blob:' #112

Closed AndyOGo closed 4 years ago

AndyOGo commented 4 years ago

In IE 11 sometimes I get this warning, not always 🤔

DOM7009: Unable to decode image at URL: 'blob:37EB3FF1-217A-4BFF-9D6F-33D8DCCF859F'.

Im using again very large images from: https://effigis.com/en/solutions/satellite-images/satellite-image-samples/

blueimp commented 4 years ago

Thanks again for your report @AndyOGo.

Unfortunately I was not able to reproduce this on the demo, even with the large images from the reference site.

My theory is that it might have something to do with either an Internet Explorer specific configuration or a configuration of the website in question.

e.g. you could try adding the following snippet to the top of the head section of your site to enforce standards mode in IE and see if that helps:

<!--[if IE]>
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<![endif]-->
AndyOGo commented 4 years ago

Thank you @blueimp for your quick answer.

I will try disabling compatability mode explicitly.

AndyOGo commented 4 years ago

@blueimp I tried adding <meta http-equiv="X-UA-Compatible" content="IE=edge" /> explicitly, without luck. Anyway we use an HTML5 doctype <!doctype html>, which triggers the newest rendering engine by default since IE11. Conditional comments are droped since IE10 I believe. https://docs.microsoft.com/de-ch/previous-versions/windows/internet-explorer/ie-developer/dev-guides/bg182625(v=vs.85)#document-mode-changes

Now I tested it in 2 environments.

blueimp commented 4 years ago

I'd say it makes sense to look at the differences between those two environments, e.g. the server headers sent for each HTTP response.

AndyOGo commented 4 years ago

@blueimp Alright, I did some more testing.

First I closed IE11 and restartet it. Since then I even don't get these errors on localhost.

I assume it happenend because I did not always call revokeObjectURL during development. But I have no evidence at hand.

So I will close this issue.

blueimp commented 4 years ago

Thanks for posting your resolution. ☺️