Titanium-Mobile-ExifData icon indicating copy to clipboard operation
Titanium-Mobile-ExifData copied to clipboard

Offset error

Open gjmcginn opened this issue 10 years ago • 1 comments

I get the following error when trying to read the exif data from files in the gallery:

[INFO] :   EXIF::FileReader filePathOrBlob is string
[INFO] :   Not a valid marker at offset 623, found: 249
[INFO] :   EXIF::FileReader filePathOrBlob is blob
[INFO] :   Not a valid marker at offset 623, found: 249

Here's my code

    Titanium.Media.openPhotoGallery({
        mediaTypes:[Ti.Media.MEDIA_TYPE_PHOTO],

        success:function(event) {
            var image = event.media;
            alert('image url: ' + image.nativePath);

            var Exif = require("Exif");

            var dataPath = Exif.fromPath(image.nativePath);
            var dataBlob = Exif.fromBlob(image);

            Ti.API.info (Exif.pretty(dataPath));
            Ti.API.info (Exif.pretty(dataBlob));

            console.log(Exif.pretty(Exif.fromPath(image.nativePath)));
            console.log(Exif.pretty(Exif.fromBlob(image)));                         
        }
    });

Titanium Studio 3.4 Titanium SDK 3.4.0 Android 4.2.2 emulator

gjmcginn avatar Nov 08 '14 08:11 gjmcginn

I think the problem is the emulator, I had the same errors, but when I try the real device works as expected

jjmaceda avatar Feb 16 '15 19:02 jjmaceda