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

always returns 'undefined' #8

Open
guardian2011 opened this issue May 27, 2015 · 14 comments
Open

always returns 'undefined' #8

guardian2011 opened this issue May 27, 2015 · 14 comments

Comments

@guardian2011
Copy link

I have copied and pasted your code for the 'full example' but the console always returns 'undefined'
I have checked the file plugin is installed: Plugin "org.apache.cordova.file" already installed on android.

@eurokdj
Copy link

eurokdj commented May 27, 2015

I confirm. Just tried with your example, under Cordova 3.4.0 and these core plugin versions : org.apache.cordova.camera 0.3.6 "Camera"
org.apache.cordova.file 1.3.3 "File"

On both Android (real device Samsung Galaxy SII under Android 4.1, emulator Nexus 4 under Android 4.4.4, iPad under iOS 8.3)

exifObjet always returns "undefined"

What are we missing ?

@mfrtrifork
Copy link

I can confirm this problem with the following setup:
Cordova version: 5.1.1
org.apache.cordova.file 1.3.3 "File"
cordova-plugin-camera 1.0.0-dev "Camera"

exifObjet always returns "undefined", any fixes ?

@ykarthikreddy18
Copy link

I'm also facing same problem.. Did anybody got solution?

@mfrtrifork
Copy link

Unfortunately not :(

@ykarthikreddy18
Copy link

Did u got any other plugin.. I'm in badly need of this feature

@mfrtrifork
Copy link

Sorry, I really can't remember how I did it. It was at my previous employer.

@ykarthikreddy18
Copy link

ooo.. Thankyou for your response michael..

@guardian2011
Copy link
Author

I switched to this library instead: https://github.com/exif-js/exif-js

@ykarthikreddy18
Copy link

Thankyou guardian.. I tried it. It is working

@ghost
Copy link

ghost commented Nov 2, 2015

@guardian2011 @ykarthikreddy18 How did you guys manage to get exif-js to work? The only tags I get from an image taken with an iPhone by calling EXIF.getAllTags(img) are:

{Orientation: 6, ExifIFDPointer: 38, ColorSpace: 1, PixelXDimension: 3264, PixelYDimension: 2448}

@ykarthikreddy18
Copy link

Hi @bardu It is working only in android.. On iPhone i'm also getting the same values.. If you got the solution for iphone, please post it here. It will be really helpful. Thankyou.

@ghost
Copy link

ghost commented Nov 4, 2015

I have tried
https://github.com/mattiasw/ExifReader
in conjunction with the Cordova FileReader API but ended up getting the same few tags. I should have done some research prior my implementation which would have saved me some time. It looks like that iPhone strips off Exif data anyway, so there is nothing we can do as it stands of today.

@ykarthikreddy18
Copy link

Yeah I searched yesterday.. For security reasons they will remove those data.

@vexsoluciones
Copy link

i've found this

https://github.com/remoorejr/cordova-plugin-camera-with-exif

they are using exif in ios with success, i have not used yet wil try it

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

5 participants