Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to read geolocation from uploaded image using exif? #2129

Open
iwanmcm opened this issue Feb 16, 2020 · 0 comments
Open

Possible to read geolocation from uploaded image using exif? #2129

iwanmcm opened this issue Feb 16, 2020 · 0 comments

Comments

@iwanmcm
Copy link

iwanmcm commented Feb 16, 2020

I am wondering, if it is possible to read the Exif metadata that is attached to image files to read the geolocation using ng-file-upload.

There are options (e.g. ngf-fix-orientation) that make use of the meta data of the Exif object. But, after selecting the file, it doesn't contain any exif information anymore.

I tried:
ngf-before-model-change="beforeChange($files)"

With:
$scope.beforeChange = function(files){ console.log('BeforeChangefiles', files); };

The result is as follows:
0: File name: "IMG_5277.JPG" lastModified: 1559123113000 lastModifiedDate: Wed May 29 2019 11:45:13 GMT+0200 (Mitteleuropäische Sommerzeit) {} webkitRelativePath: "" size: 3741545 type: "image/jpeg" $ngfBlobUrl: "blob:http://localhost/630d0c34-07a1-4f41-81fd-e2cf021cbf65" $ngfWidth: 4032 $ngfHeight: 3024

The Exif information seems to be lost at this point already.

Is it somehow possible to access the exif information, before it is lost?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant