DLD Changes

Robert Helling helling at atdotde.de
Fri Apr 15 07:59:49 PDT 2016


Hi,

> On 15.04.2016, at 16:18, Miika Turkia <miika.turkia at gmail.com> wrote:
> 
> (Not that I would have a clear
> picture on what Robert has done on Subsurface end regarding picture
> management in-between :D)


not much actually. But (and I guess that was also the case the last time we spoke about this) in subsurface, images can be URLs. That is a picture has this thing that is called “filename”, but that can be more general. First we try to interpret that as a local filename and see if that loads as a picture. If it doesn’t, we interpret is as a URL and download it (upon displaying the dive) from the interwebs. Once successfully downloaded, we cache that picture and (based on its hash value)  access the local version. So if Rainer provided us just with a valid image URL the rest would automagically work from there.

If you further wanted to preserve bad with, the server could already compute the SHA1 hash of the image file. In that case we wouldn’t even load it if we had a local copy with a different “Filename”.

Upload, of course is a different matter.

Best
Robert

--
.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oO
Robert C. Helling     Elite Master Course Theoretical and Mathematical Physics
                      Scientific Coordinator
                      Ludwig Maximilians Universitaet Muenchen, Dept. Physik
                      Phone: +49 89 2180-4523  Theresienstr. 39, rm. B339
                      http://www.atdotde.de

Enhance your privacy, use cryptography! My PGP keys have fingerprints
A9D1 A01D 13A5 31FA 6515  BB44 0820 367C 36BC 0C1D    and
DCED 37B6 251C 7861 270D  5613 95C7 9D32 9A8D 9B8F





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20160415/e4484787/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20160415/e4484787/attachment.sig>


More information about the subsurface mailing list