cordova-exif icon indicating copy to clipboard operation
cordova-exif copied to clipboard

always returns 'undefined'

Open guardian2011 opened this issue 9 years ago • 14 comments

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.

guardian2011 avatar May 27 '15 04:05 guardian2011

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 ?

eurokdj avatar May 27 '15 13:05 eurokdj

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 ?

mfrtrifork avatar Jul 09 '15 09:07 mfrtrifork

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

ykarthikreddy18 avatar Oct 08 '15 09:10 ykarthikreddy18

Unfortunately not :(

mfrtrifork avatar Oct 08 '15 09:10 mfrtrifork

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

ykarthikreddy18 avatar Oct 08 '15 10:10 ykarthikreddy18

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

mfrtrifork avatar Oct 08 '15 10:10 mfrtrifork

ooo.. Thankyou for your response michael..

ykarthikreddy18 avatar Oct 08 '15 10:10 ykarthikreddy18

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

guardian2011 avatar Oct 08 '15 19:10 guardian2011

Thankyou guardian.. I tried it. It is working

ykarthikreddy18 avatar Oct 09 '15 03:10 ykarthikreddy18

@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}

ghost avatar Nov 02 '15 19:11 ghost

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.

ykarthikreddy18 avatar Nov 03 '15 03:11 ykarthikreddy18

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.

ghost avatar Nov 04 '15 00:11 ghost

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

ykarthikreddy18 avatar Nov 04 '15 03:11 ykarthikreddy18

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

vexsoluciones avatar Feb 04 '16 23:02 vexsoluciones