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

No GPS Lat/Long after resized image on IOS #47

Closed rothanachoun closed 10 years ago

rothanachoun commented 10 years ago

I use loadImage.parseMetaData to combine imageHead to resizedImage and then I got a new image with meta data include GPS Lat/Long. Unfortunately it works fine only on android but ios not works. Anyone know how to fix this?

Thanks !

blueimp commented 10 years ago

Sorry but in my tests the GPS data is preserved as expected on iOS. Are you sure the original image taken has the expected data? You can do a quick check here on the demo: http://blueimp.github.io/JavaScript-Load-Image/

rothanachoun commented 10 years ago

Yeah I'm sure that the original image taken with GEO data and I transfer this original image to laptop and I test it with your demo file on desktop browser, i got GPS data.

I tried to test from my phone (IOS 7.1) with your demo file and I always got only 5 meta tag :

Orientation
ExifIFDPointer
ColorSpace
PixelXDimension
PixelYDimension

Thanks for your reply !

blueimp commented 10 years ago

I'm sorry it could be that the GEO data in this case is not stored in the EXIF format parsed by this library.

rothanachoun commented 10 years ago

I got it. Great thanks for always help !