touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #111576
[Bug 1482735] Re: Preview with strange time for MTP pic
The MediaFile.getDate() method of media scanner will return the date
found in the metadata if available. So if the picture has EXIF metadata
(which you'd expect for photos coming from a camera), the returned date
won't necessarily match the file mtime. This is consistent with how we
handle dates for music files.
It isn't surprising that the date is close but not exactly the same as
the mtime for locally shot photos: some time would elapse between when
camera-app reads the current time to store in the metadata and when it
finishes writing the photo to disk.
We have a second method call getModificationTime() that will return the
mtime for a particular file. This was likely added after the photos
scope was initially developed. It was added in order to let us query
for the most recently added songs in the music scope, but could also be
used for the photo scope preview if you really want to ignore the date
from the metadata.
** Changed in: mediascanner2 (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to mediascanner2 in Ubuntu.
https://bugs.launchpad.net/bugs/1482735
Title:
Preview with strange time for MTP pic
Status in photos-scope:
Triaged
Status in mediascanner2 package in Ubuntu:
Invalid
Bug description:
Just in the process of automating a test or two:
TEST CASE
* Transfer a pic to device
* Scroll to photos scope
* Open preview
EXPECTED
Time matches change time for file on host
ACTUAL
Time does not match change time of file on host but close :)
I'll add some logs and a screenie. Arale r77 FWIW.
On device
phablet@ubuntu-phablet:~$ stat Pictures/Phase-Lumiere-II-by-Otto-Piene-1961.jpg
File: ‘Pictures/Phase-Lumiere-II-by-Otto-Piene-1961.jpg’
Size: 801449 Blocks: 1568 IO Block: 4096 regular file
Device: b310h/45840d Inode: 1066565 Links: 1
Access: (0664/-rw-rw-r--) Uid: (32011/ phablet) Gid: (32011/ phablet)
Access: 2015-08-07 11:16:19.379499130 -0500
Modify: 2015-08-07 11:16:19.409499130 -0500
Change: 2015-08-07 11:16:19.409499130 -0500
Birth: -
On host
alesage@triacetate:~/workspace/Canonical/a-team/photos-scope-opens-gallery$ stat ~/Pictures/Phase-Lumiere-II-by-Otto-Piene-1961.jpg
File: ‘/home/alesage/Pictures/Phase-Lumiere-II-by-Otto-Piene-1961.jpg’
Size: 801449 Blocks: 1568 IO Block: 4096 regular file
Device: 803h/2051d Inode: 787658 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 1000/ alesage) Gid: ( 1000/ alesage)
Access: 2015-08-07 11:16:19.446116080 -0500
Modify: 2012-01-31 11:12:23.225834745 -0600
Change: 2012-01-31 11:12:23.225834745 -0600
Birth: -
To manage notifications about this bug go to:
https://bugs.launchpad.net/photos-scope/+bug/1482735/+subscriptions