<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Robert, Miika,<br>
<br>
<div class="moz-cite-prefix">Am 15.04.16 um 16:59 schrieb Robert
Helling:<br>
</div>
<blockquote
cite="mid:D2E6D771-E661-4230-92CF-8FB8C00D9F64@atdotde.de"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Hi,
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 15.04.2016, at 16:18, Miika Turkia <<a
moz-do-not-send="true"
href="mailto:miika.turkia@gmail.com" class=""><a class="moz-txt-link-abbreviated" href="mailto:miika.turkia@gmail.com">miika.turkia@gmail.com</a></a>>
wrote:</div>
<br class="Apple-interchange-newline">
<div class=""><span style="font-family: Menlo-Regular;
font-size: 11px; font-style: normal; font-variant-caps:
normal; font-weight: normal; letter-spacing: normal;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
float: none; display: inline !important;" class="">(Not
that I would have a clear</span><br style="font-family:
Menlo-Regular; font-size: 11px; font-style: normal;
font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: auto; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;" class="">
<span style="font-family: Menlo-Regular; font-size: 11px;
font-style: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal; orphans:
auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
float: none; display: inline !important;" class="">picture
on what Robert has done on Subsurface end regarding
picture</span><br style="font-family: Menlo-Regular;
font-size: 11px; font-style: normal; font-variant-caps:
normal; font-weight: normal; letter-spacing: normal;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;"
class="">
<span style="font-family: Menlo-Regular; font-size: 11px;
font-style: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal; orphans:
auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
float: none; display: inline !important;" class="">management
in-between :D)</span></div>
</blockquote>
</div>
<div class=""><br class="">
</div>
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.</div>
</blockquote>
<br>
Well, there is a tag in the DLDs XML data for the pictures and its
already fully functional.....<br>
Here's an example for my last dives pictures:<br>
<br>
<PICTURES><br>
<PICTURE lastModified="2016-03-18 16:07:33"
path="/pictures/rainer/">1683296-1.jpg</PICTURE><br>
<PICTURE lastModified="2016-03-18 16:07:33"
path="/pictures/rainer/">1683296-2.jpg</PICTURE><br>
<PICTURE lastModified="2016-03-18 16:07:34"
path="/pictures/rainer/">1683296-3.jpg</PICTURE><br>
<PICTURE lastModified="2016-03-18 16:07:34"
path="/pictures/rainer/">1683296-4.jpg</PICTURE><br>
<PICTURE lastModified="2016-03-18 16:07:34"
path="/pictures/rainer/">1683296-5.jpg</PICTURE><br>
<PICTURE lastModified="2016-03-18 16:07:34"
path="/pictures/rainer/">1683296-6.jpg</PICTURE><br>
</PICTURES><br>
<br>
so if you simply concatenate <a class="moz-txt-link-rfc2396E" href="https://divelogs.de">"https://divelogs.de"</a>, the path
attribute and the value of the <PICTURE> Tag, you have your
URL already:<br>
<br>
<a class="moz-txt-link-freetext" href="https://divelogs.de/pictures/rainer/1683296-1.jpg">https://divelogs.de/pictures/rainer/1683296-1.jpg</a><br>
<br>
<blockquote
cite="mid:D2E6D771-E661-4230-92CF-8FB8C00D9F64@atdotde.de"
type="cite">
<div class=""><br class="">
</div>
<div class="">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”.</div>
<div class=""><br class="">
</div>
<div class="">Upload, of course is a different matter.</div>
</blockquote>
<br>
This is already sort of "prepared" on the server side but not yet
released.<br>
My idea was to include a folder "pictures" in the DLD file and stuff
all the pics in there. Add the <PICTURES> tag in the XML and
that would be just about it for a start. Biggest problem is probably
that the DLD files could get damn big and exceed the servers POST
limit quite soon. But I guess we could experiment...<br>
<br>
Rainer<br>
</body>
</html>