cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ollie Edwards (JIRA)" <>
Subject [jira] [Commented] (CB-6640) saveToPhotoAlbum, saves picture with wrong date
Date Tue, 20 May 2014 13:54:38 GMT


Ollie Edwards commented on CB-6640:

I've dug into this a bit. Additionally I note that the image roll shows the file size as 0b.
When the device is restarted the date and size are displayed correctly. If I view the exif
data on the image file itself it appears present and correct. 

My educated guess was initially that the two stage writing process used by the ExifHelper
in the camera plugin means that at the Android system caches the exif data before the file
has actually been written to? Upon system restart the data is then re-indexed. 

However, I attempted to workaround this issue by copying the final file to a new file, which
by my theory would mean the exif data would be indexed correctly for the new file. Alas, the
problem persisted.

This is not an area I'm particularly familiar with but I'll continue to experiment. I hope
this information will be useful to anyone else investigating this issue. 

Tested on a Nexus 7 running android 4.4, cordova 3.4 with camera plugin 2.9. 

> saveToPhotoAlbum, saves picture with wrong date
> -----------------------------------------------
>                 Key: CB-6640
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>    Affects Versions: 3.4.0
>         Environment: Android, Nexus 4, Nexus 5  (4.4.2); HTC One Mini (4.4.2)
>            Reporter: diDev
> Using the camera plugin from cordova and setting the Attribute saveToPhotoAlbum to true,
will save the picture to the phone. No problems here. But testing it on the Nexus 4 &
5 it saves the picture with date 01.01.1970 01:00:00
> Seems to be the same problem on S4:
> Btw.: using the App on HTC one mini, the date ist correct. But the picture will be saved
twice in different folder. The normal 'camera' folder and the '100media' folder.

This message was sent by Atlassian JIRA

View raw message