Getting EXIF โ€‹โ€‹from an image

I am using this library http://blog.nihilogic.dk/2008/05/reading-exif-data-with-javascript.html . I am calling the library like this: EXIF.pretty(image)

where image is an image object. My result is an empty string even if I am using an image with EXIF โ€‹โ€‹data. What am I doing wrong?

I tried it too:

var binary_reader = new FileReader();

     var temp = binary_reader.readAsBinaryString(image);
     var temp2 = new BinaryFile(temp);

    alert(EXIF.readFromBinaryFile(temp2));

      

But no success. Please, help!

+3


source to share


1 answer


exif.readfrombinaryfile

does not return a single row or value. Try something like this to display a single EXIF โ€‹โ€‹value:



    var exif = EXIF.readFromBinaryFile(temp);
    alert(exif.Make);

      

+1


source







All Articles