[PATCH 1/2] git-format: save dive picture data
torvalds at linux-foundation.org
Sun Jun 29 17:49:59 PDT 2014
On Sun, Jun 29, 2014 at 5:22 PM, Dirk Hohndel <dirk at hohndel.org> wrote:
> If there is GPS data (think of someone taking a phone in a case and taking
> a picture of the boat right at the start of the dive or something) we
> should encode it in a reasonable fashion, too :-)
The code is there. I don't have any such pictures, so it's not tested
at all, though.
If there is gps data, the picture file should end up looking something like
gps <lat> <long>
and both the writing and the reading side has the code to save/load
the gps data, but without any testing I'm not going to claim that it
Also, from my very limited picture testing, I have to say that I'm not
a huge fan. The "offset" thing is incomprehensible (a zero offset
shows as "12:00 am" in a US locale), and if you just select a whole
subdirectory of pictures and expect subsurface to just match them by
date, it "works", but it actually selects *all* pictures, regardless
of whether the date offset then ends up being sane or not (ie negative
offsets, or offsets past the end of the dive).
It's also very slow - it seems to re-create the thumbnails every time
you select that dive.
None of this is about the loading/saving part, though, I just feel
that there's some room for improvement in this whole thing. I'd
personally really prefer to just prefer to select all dives of a day,
select all pictures of a day, and say "import the matching dates".
More information about the subsurface