Extract EXIF ​​data with JavaScript

I am evaluating image loading techniques using Canvas for a mobile web app. The sticking point is read on the EXIF ​​client side. Other discussions on this site point to the excellent JavaScript Blueimp Image Loading . I especially want to extract from EXIF:

  • date and time of the photo taken
  • Geolocation - latitude and longitude of captured images

Testing a Blueimp script in Firefox v.33.1 on Windows Vista with a photo taken on an iPhone (with geodata) successfully retrieves all EXIF ​​data including date, time and geocoders. Doing the same test with the same photo on iOS and fetching only a small amount of EXIF ​​data - only dimensions and orientation (I'm using iPhone 5, iOS 8.1), nothing else. Why is this? Is there a fix or alternative JavaScript EXIF ​​extraction tool to recommend?

Suggestions are greatly appreciated as it makes my head go! Thanks in advance.

Please note, I don't want to do this on the server side with PHP because it requires loading the full image which can slow down over mobile bandwidth, so the canvas parameter can be resized on the client side.

+3


source to share


1 answer


After discussing this issue in more detail, a similar question was asked here a year ago with no satisfactory answers. Uploaded files on iOS devices only get access to the sanitized version of the file for privacy reasons, according to one commenter . This means that useful things like time / date and GPS are removed from the file before it is available to the browser.



What kind of this idea. :(

+2


source







All Articles