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 924 forks source link

loadImage.parseMetaData with URL does not read EXIF #62

Closed jamgold closed 10 years ago

jamgold commented 10 years ago

I am trying to use your library to properly rotate images taken on a mobile device when displayed on a desktop web browser. When I pass the URL to the image into the loadImage.parseMetaData function, it does not get the EXIF data. Am I doing it wrong, or is this not supposed to work?

blueimp commented 10 years ago

The parseMetaData method only accepts an object of type File or Blob, not a URL: https://github.com/blueimp/JavaScript-Load-Image#meta-data-parsing

jamgold commented 10 years ago

First line of Description in the README.md of this fine package says

JavaScript Load Image is a library to load images provided as File or Blob objects or via URL.

Hence my confusion.

blueimp commented 10 years ago

That's for the loadImage function, not the additional parseMetaData function.

jamgold commented 10 years ago

Got it, thanks.