Hi,<br>this is adressed to Frank because I think you may answer to that easily, but maybe anyone could comment on this.<br>I&#39;m writing about the opendesktop api especially for it&#39;s blenderstuff version if there&#39;s one.<br>
So to recall about my project, I&#39;m working on a client for Blender which could interact with several blender repositories (including <a href="http://blenderstuff.org">blenderstuff.org</a>) to be able to browse for objects, fetch some and upload other to repositories. I intend to have a central server which tries to lookup the various repositories periodically and update its cache of (which object - can be found where) pairs. The client queries the central servers which looks into its cache and gives links to the client for : image previews &amp; details of objects, direct links to download the objects.<br>
<br>These days I&#39;m listing the various attributes that each repository provides for the objects it stores. So preview picture is something I was concerned with.<br><br>looking at this for example taken from the LIST function of the online API:<br>
<pre id="line1">&lt;<span class="start-tag">id</span>&gt;81388&lt;/<span class="end-tag">id</span>&gt;<br>   &lt;<span class="start-tag">name</span>&gt;Glassified&lt;/<span class="end-tag">name</span>&gt;<br></pre><pre id="line9">
   &lt;<span class="start-tag">version</span>&gt;1.0&lt;/<span class="end-tag">version</span>&gt;<br>   &lt;<span class="start-tag">changed</span>&gt;1212187283&lt;/<span class="end-tag">changed</span>&gt;<br>   &lt;<span class="start-tag">created</span>&gt;1211236532&lt;/<span class="end-tag">created</span>&gt;<br>
   &lt;<span class="start-tag">typeid</span>&gt;76&lt;/<span class="end-tag">typeid</span>&gt;<br>   &lt;<span class="start-tag">typename</span><span class="error"><span class="attribute-name">/</span></span>&gt;<br>   &lt;<span class="start-tag">language</span>&gt;&lt;/<span class="end-tag">language</span>&gt;<br>
   &lt;<span class="start-tag">user</span>&gt;painkiller101&lt;/<span class="end-tag">user</span>&gt;<br></pre><pre id="line16">   &lt;<span class="start-tag">downloads</span>&gt;2431&lt;/<span class="end-tag">downloads</span>&gt;<br>
   &lt;<span class="start-tag">score</span>&gt;92&lt;/<span class="end-tag">score</span>&gt;<br>   &lt;<span class="start-tag">comments</span>&gt;54&lt;/<span class="end-tag">comments</span>&gt;<br>   &lt;<span class="start-tag">preview1</span>&gt;<a href="http://www.blenderstuff.org/content/preview.php?preview=1&amp;">http://www.blenderstuff.org/content/preview.php?preview=1&amp;</a><span class="entity">amp;</span>id=81388&amp;<span class="entity">amp;</span>file1=81388-1.jpeg&amp;<span class="entity">amp;</span>file2=81388-2.jpg&amp;<span class="entity">amp;</span>file3=&amp;<span class="entity">amp;</span>name=Glassified&lt;/<span class="end-tag">preview1</span>&gt;<br>
</pre><pre id="line20">   &lt;<span class="start-tag">previewpic1</span>&gt;<a href="http://www.blenderstuff.org/CONTENT/content-pre1/81388-1.jpeg">http://www.blenderstuff.org/CONTENT/content-pre1/81388-1.jpeg</a>&lt;/<span class="end-tag">previewpic1</span>&gt;<br>
  &lt;/<span class="end-tag">entry</span>&gt;<br></pre>there seems to be 3 kinds of previews :<br>a) previewpic1<br>then for the preview1 tag : there are b) thumbnails at the top and c)big pictures in the middle (screenshots 1,2,3 from the add content online form)<br>
Is there a standard size for those types of previews ? I can guess that there&#39;s one fixed size for type b) but no for the others.<br>What&#39;s the real difference between preview of class a) and previews of class c) ?<br>
<br>Looking at : <a href="http://api.kde-apps.org/V1/GET/72739">http://api.kde-apps.org/V1/GET/72739</a> with an excerpt below :<br><pre id="line1"> &lt;<span class="start-tag">data</span>&gt;<br>  &lt;<span class="start-tag">id</span>&gt;72739&lt;/<span class="end-tag">id</span>&gt;<br>
  &lt;<span class="start-tag">name</span>&gt;Manslide&lt;/<span class="end-tag">name</span>&gt;<br>  &lt;<span class="start-tag">version</span>&gt;v2.0.3&lt;/<span class="end-tag">version</span>&gt;<br></pre>...<pre id="line61">
  &lt;<span class="start-tag">comments</span>&gt;150&lt;/<span class="end-tag">comments</span>&gt;<br>  &lt;<span class="start-tag">depend</span>&gt;Qt 4.x&lt;/<span class="end-tag">depend</span>&gt;<br><b>  &lt;<span class="start-tag">preview1</span>&gt;<a href="http://www.KDE-Apps.org/content/preview.php?preview=1&amp;">http://www.KDE-Apps.org/content/preview.php?preview=1&amp;</a><span class="entity">amp;</span>id=72739&amp;<span class="entity">amp;</span>file1=72739-1.jpg&amp;<span class="entity">amp;</span>file2=72739-2.jpg&amp;<span class="entity">amp;</span>file3=72739-3.jpg&amp;<span class="entity">amp;</span>name=Manslide&lt;/<span class="end-tag">preview1</span>&gt;<br>
</b></pre><pre id="line66"><b>  &lt;<span class="start-tag">preview2</span>&gt;<a href="http://www.KDE-Apps.org/content/preview.php?preview=2&amp;">http://www.KDE-Apps.org/content/preview.php?preview=2&amp;</a><span class="entity">amp;</span>id=72739&amp;<span class="entity">amp;</span>file1=72739-1.jpg&amp;<span class="entity">amp;</span>file2=72739-2.jpg&amp;<span class="entity">amp;</span>file3=72739-3.jpg&amp;<span class="entity">amp;</span>name=Manslide&lt;/<span class="end-tag">preview2</span>&gt;<br>
  &lt;<span class="start-tag">preview3</span>&gt;<a href="http://www.KDE-Apps.org/content/preview.php?preview=3&amp;">http://www.KDE-Apps.org/content/preview.php?preview=3&amp;</a><span class="entity">amp;</span>id=72739&amp;<span class="entity">amp;</span>file1=72739-1.jpg&amp;<span class="entity">amp;</span>file2=72739-2.jpg&amp;<span class="entity">amp;</span>file3=72739-3.jpg&amp;<span class="entity">amp;</span>name=Manslide&lt;/<span class="end-tag">preview3</span>&gt;<br>
  &lt;<span class="start-tag">previewpic1</span>&gt;<a href="http://www.KDE-Apps.org/CONTENT/content-pre1/72739-1.jpg">http://www.KDE-Apps.org/CONTENT/content-pre1/72739-1.jpg</a>&lt;/<span class="end-tag">previewpic1</span>&gt;<br>
</b></pre><pre id="line69"><b>  &lt;<span class="start-tag">previewpic2</span>&gt;<a href="http://www.KDE-Apps.org/CONTENT/content-pre2/72739-2.jpg">http://www.KDE-Apps.org/CONTENT/content-pre2/72739-2.jpg</a>&lt;/<span class="end-tag">previewpic2</span>&gt;<br>
  &lt;<span class="start-tag">previewpic3</span>&gt;<a href="http://www.KDE-Apps.org/CONTENT/content-pre3/72739-3.jpg">http://www.KDE-Apps.org/CONTENT/content-pre3/72739-3.jpg</a>&lt;/<span class="end-tag">previewpic3</span>&gt;<br>
  &lt;<span class="start-tag">smallpreviewpic1</span>&gt;<a href="http://www.KDE-Apps.org/CONTENT/content-m1/m72739-1.png">http://www.KDE-Apps.org/CONTENT/content-m1/m72739-1.png</a>&lt;/<span class="end-tag">smallpreviewpic1</span>&gt;<br>
  &lt;<span class="start-tag">smallpreviewpic2</span>&gt;<a href="http://www.KDE-Apps.org/CONTENT/content-m2/m72739-2.png">http://www.KDE-Apps.org/CONTENT/content-m2/m72739-2.png</a>&lt;/<span class="end-tag">smallpreviewpic2</span>&gt;<br>
  &lt;<span class="start-tag">smallpreviewpic3</span>&gt;<a href="http://www.KDE-Apps.org/CONTENT/content-m3/m72739-3.png">http://www.KDE-Apps.org/CONTENT/content-m3/m72739-3.png</a>&lt;/<span class="end-tag">smallpreviewpic3</span>&gt;<br>
</b>  &lt;<span class="start-tag">downloadtype1</span>&gt;&lt;/<span class="end-tag">downloadtype1</span>&gt;<br></pre><pre id="line75">  &lt;<span class="start-tag">downloadlink1</span>&gt;<a href="http://www.KDE-Apps.org/content/download.php?content=72739&amp;">http://www.KDE-Apps.org/content/download.php?content=72739&amp;</a><span class="entity">amp;</span>id=1&lt;/<span class="end-tag">downloadlink1</span>&gt;<br>
  &lt;<span class="start-tag">downloadname1</span>&gt;Binary + Source&lt;/<span class="end-tag">downloadname1</span>&gt;<br>  &lt;<span class="start-tag">downloadsize1</span>&gt;&lt;/<span class="end-tag">downloadsize1</span>&gt;<br>
 &lt;/<span class="end-tag">data</span>&gt;<br></pre>comment on the above dump : preview1,2 and 3 contain exactly the same url, which leads to a dhtml pages with the thumbnail images as smallpreviewpic* and the same big images as previewpic*.<br>
The page linked in preview* elements contains items listed right after in the xml file and parsing the html would require additional work for coders. I can understand that some people may want to embed this html page into some htmlview widget, so I&#39;d suggest completely replacing the preview* tags by a single &lt;previewshtmlpage&gt; which would encompass the html page url.<br>
<br>in the case of blender repo client usage of remote repositories, we would like to have 1 thumbnail of fixed size (to avoid having to resize it on the client side) per item if provided, and at least one big image (if possible at a specific size as well) that would be showed if a user wants more details. I wish this (1 link to thumbnail + 1 link to big image) pack existed be in each entry elements of the xml returned by LIST(), I think that it was the aim of preview1 and previewpic1 except that preview1 leads to html.<br>
<br>So in short, I would propose for each items, to have direct links within the following tags:<br>- for the LIST() output :&nbsp; &lt;preview1&gt;(thumbnail) and &lt;previewpic1&gt;(big)<br>- for the GET() output : &lt;preview[1-3]&gt;(thumbnails), &lt;previewpic[1-3]&gt;(big), &lt;previewhtmlpage&gt;(link to the dhtml page with thumbnails on top + 1 big screenshot at a time in the bottom part)<br>
<br>this could break the API a very little and maybe some clients (so far I know only khotnewstuff)... I don&#39;t know which tags khotnewstuff uses and which it doesn&#39;t, but I doubt the url to html pages from preview[1-3] (LIST and GET outputs)&nbsp; are used by that tool.<br>
<br>Jonathan<br>