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.46k stars 923 forks source link

Issue loading an image #137

Closed aleporf closed 2 years ago

aleporf commented 2 years ago

There is an issue loading this particular image. (see image link attached below)

Image example

blueimp commented 2 years ago

The issue with that particular image is not its file size (28.9 MB). I have a test file with 58.7 MB that loads without issues.

The image you provided does not load in Chrome nor Firefox (by opening it in a new tab). Firefox displays the following error message:

The image "PATH/image.jpeg" cannot be displayed because it contains errors.
aleporf commented 2 years ago

@blueimp Yes, I knew it wasn't a size problem. But anyway I wanted to share it to see if there was another issue in the lib.

Thanks for checking it out!

blueimp commented 2 years ago

I see. Just opening the file in question in a browser tab is the best way to know if it will load, as the loading itself is just a browser function. Will close this issue now, but please post here if you have any additional information on why your file is not compatible with browsers.