Detect whether the loading image is taken from camera directly, when using smartphones

Posted by Eitan on Stack Overflow See other posts from Stack Overflow or by Eitan
Published on 2013-06-30T22:17:30Z Indexed on 2013/06/30 22:20 UTC
Read the original article Hit count: 213

Filed under:
|
|
|
|

I am using html, tag:

<input type = "file" />

On android and on many cellulars I have the ability to get the file directly by taking a picture and save it.

How can I know (by javascript code) how did I get the picture (direcly by the camera, or by some files that on my cellular)?

I did some workarround, and found exif (http://www.nihilogic.dk/labs/exif/exif.js), but I didn't succeed using it, either I don't know whether exif is the right solution.

Thanks :)

© Stack Overflow or respective owner

Related posts about android

Related posts about file