Hi,<br>I hadn&#39;t spotted some of the tags in the xml.<br>thank you for pointing those I hadn&#39;t noticed and explaining everything.<br>I think that the current xml outputted by the api which you explained is enough for the blender client we want here.<br>
<br>Thanks very much for your enlightening reply,<br>Jonathan<br><br><div class="gmail_quote">On Mon, Jun 2, 2008 at 10:31 AM, Frank Karlitschek &lt;<a href="mailto:frank@opendesktop.org">frank@opendesktop.org</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
On 01.06.2008, at 14:05, Jonathan-David SCHRODER wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
</blockquote>
<br>
Hi Jonathan,<br>
<br>
great to here that you keep on working on the client.<div class="Ih2E3d"><br>
<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<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>
</blockquote>
<br></div>
sure. <a href="http://api.blenderstuff.org" target="_blank">api.blenderstuff.org</a><br>
We already have a few uploads.<div class="Ih2E3d"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<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" target="_blank">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>
&lt;id&gt;81388&lt;/id&gt;<br>
 &nbsp; &lt;name&gt;Glassified&lt;/name&gt;<br>
 &nbsp; &lt;version&gt;1.0&lt;/version&gt;<br>
 &nbsp; &lt;changed&gt;1212187283&lt;/changed&gt;<br>
 &nbsp; &lt;created&gt;1211236532&lt;/created&gt;<br>
<br>
 &nbsp; &lt;typeid&gt;76&lt;/typeid&gt;<br>
 &nbsp; &lt;typename/&gt;<br>
 &nbsp; &lt;language&gt;&lt;/language&gt;<br>
<br>
 &nbsp; &lt;user&gt;painkiller101&lt;/user&gt;<br>
 &nbsp; &lt;downloads&gt;2431&lt;/downloads&gt;<br>
<br>
 &nbsp; &lt;score&gt;92&lt;/score&gt;<br>
 &nbsp; &lt;comments&gt;54&lt;/comments&gt;<br>
 &nbsp; &lt;preview1&gt;<a href="http://www.blenderstuff.org/content/preview.php?preview=1&amp;id=81388&amp;file1=81388-1.jpeg&amp;file2=81388-2.jpg&amp;file3=&amp;name=Glassified" target="_blank">http://www.blenderstuff.org/content/preview.php?preview=1&amp;amp;id=81388&amp;amp;file1=81388-1.jpeg&amp;amp;file2=81388-2.jpg&amp;amp;file3=&amp;amp;name=Glassified</a>&lt;/preview1&gt;<br>

<br>
 &nbsp; &lt;previewpic1&gt;<a href="http://www.blenderstuff.org/CONTENT/content-pre1/81388-1.jpeg" target="_blank">http://www.blenderstuff.org/CONTENT/content-pre1/81388-1.jpeg</a>&lt;/previewpic1&gt;<br>
<br>
 &nbsp;&lt;/entry&gt;<br>
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>
</blockquote>
<br></div>
&lt;preview&gt; is the url of the preview html page. You have up to three small thumbnails as navigation on top of the page and the current preview in full size below.<br>
<br>
&lt;previewpic&gt; is the direct url of the big preview picture. Exactly the same file the user uploads.<br>
<br>
&lt;smallpreview&gt; is the direct url of the thumbnail of the preview picture. This picture is automatically generated if a user uploads a preview.<br>
The size of the small preview is 120x90 pixels or smaller for <a href="http://blenderstuff.org" target="_blank">blenderstuff.org</a>. Please note that the x or y size of the picture can be smaller than 120 or 90 pixels because we have to keep aspect ratio.<div class="Ih2E3d">
<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Looking at : <a href="http://api.kde-apps.org/V1/GET/72739" target="_blank">http://api.kde-apps.org/V1/GET/72739</a> with an excerpt below :<br>
&nbsp;&lt;data&gt;<br>
 &nbsp;&lt;id&gt;72739&lt;/id&gt;<br>
<br>
 &nbsp;&lt;name&gt;Manslide&lt;/name&gt;<br>
 &nbsp;&lt;version&gt;v2.0.3&lt;/version&gt;<br>
...<br>
 &nbsp;&lt;comments&gt;150&lt;/comments&gt;<br>
 &nbsp;&lt;depend&gt;Qt 4.x&lt;/depend&gt;<br>
 &nbsp;&lt;preview1&gt;<a href="http://www.KDE-Apps.org/content/preview.php?preview=1&amp;id=72739&amp;file1=72739-1.jpg&amp;file2=72739-2.jpg&amp;file3=72739-3.jpg&amp;name=Manslide" target="_blank">http://www.KDE-Apps.org/content/preview.php?preview=1&amp;amp;id=72739&amp;amp;file1=72739-1.jpg&amp;amp;file2=72739-2.jpg&amp;amp;file3=72739-3.jpg&amp;amp;name=Manslide</a>&lt;/preview1&gt;<br>

<br>
 &nbsp;&lt;preview2&gt;<a href="http://www.KDE-Apps.org/content/preview.php?preview=2&amp;id=72739&amp;file1=72739-1.jpg&amp;file2=72739-2.jpg&amp;file3=72739-3.jpg&amp;name=Manslide" target="_blank">http://www.KDE-Apps.org/content/preview.php?preview=2&amp;amp;id=72739&amp;amp;file1=72739-1.jpg&amp;amp;file2=72739-2.jpg&amp;amp;file3=72739-3.jpg&amp;amp;name=Manslide</a>&lt;/preview2&gt;<br>

<br>
 &nbsp;&lt;preview3&gt;<a href="http://www.KDE-Apps.org/content/preview.php?preview=3&amp;id=72739&amp;file1=72739-1.jpg&amp;file2=72739-2.jpg&amp;file3=72739-3.jpg&amp;name=Manslide" target="_blank">http://www.KDE-Apps.org/content/preview.php?preview=3&amp;amp;id=72739&amp;amp;file1=72739-1.jpg&amp;amp;file2=72739-2.jpg&amp;amp;file3=72739-3.jpg&amp;amp;name=Manslide</a>&lt;/preview3&gt;<br>

<br>
 &nbsp;&lt;previewpic1&gt;<a href="http://www.KDE-Apps.org/CONTENT/content-pre1/72739-1.jpg" target="_blank">http://www.KDE-Apps.org/CONTENT/content-pre1/72739-1.jpg</a>&lt;/previewpic1&gt;<br>
<br>
 &nbsp;&lt;previewpic2&gt;<a href="http://www.KDE-Apps.org/CONTENT/content-pre2/72739-2.jpg" target="_blank">http://www.KDE-Apps.org/CONTENT/content-pre2/72739-2.jpg</a>&lt;/previewpic2&gt;<br>
<br>
 &nbsp;&lt;previewpic3&gt;<a href="http://www.KDE-Apps.org/CONTENT/content-pre3/72739-3.jpg" target="_blank">http://www.KDE-Apps.org/CONTENT/content-pre3/72739-3.jpg</a>&lt;/previewpic3&gt;<br>
<br>
 &nbsp;&lt;smallpreviewpic1&gt;<a href="http://www.KDE-Apps.org/CONTENT/content-m1/m72739-1.png" target="_blank">http://www.KDE-Apps.org/CONTENT/content-m1/m72739-1.png</a>&lt;/smallpreviewpic1&gt;<br>
<br>
 &nbsp;&lt;smallpreviewpic2&gt;<a href="http://www.KDE-Apps.org/CONTENT/content-m2/m72739-2.png" target="_blank">http://www.KDE-Apps.org/CONTENT/content-m2/m72739-2.png</a>&lt;/smallpreviewpic2&gt;<br>
<br>
 &nbsp;&lt;smallpreviewpic3&gt;<a href="http://www.KDE-Apps.org/CONTENT/content-m3/m72739-3.png" target="_blank">http://www.KDE-Apps.org/CONTENT/content-m3/m72739-3.png</a>&lt;/smallpreviewpic3&gt;<br>
<br>
 &nbsp;&lt;downloadtype1&gt;&lt;/downloadtype1&gt;<br>
 &nbsp;&lt;downloadlink1&gt;<a href="http://www.KDE-Apps.org/content/download.php?content=72739&amp;id=1" target="_blank">http://www.KDE-Apps.org/content/download.php?content=72739&amp;amp;id=1</a>&lt;/downloadlink1&gt;<br>
<br>
 &nbsp;&lt;downloadname1&gt;Binary + Source&lt;/downloadname1&gt;<br>
 &nbsp;&lt;downloadsize1&gt;&lt;/downloadsize1&gt;<br>
<br>
&nbsp;&lt;/data&gt;<br>
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>
</blockquote>
<br></div>
No. The urls are different.<br>
The links go to different preview pages.<div class="Ih2E3d"><br>
<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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>
</blockquote>
<br></div>
I´m not sure if I understand what you mean. All the information is available in the xml. Why do you have to parse the html or the url?<div class="Ih2E3d"><br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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>

</blockquote>
<br></div>
We have that already. The tags are previewpic and smallpreviewpic.<br>
<br>
The only problem is that previewpic is not automatically scaled. If we upscale or downscale the upload of the users, the quality would be very bad.<br>
<br>
The smallpreviewpic is 120x90 or smaller. The size is not always the same because we have to make sure that the aspect ratio if correct.<div class="Ih2E3d"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<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>
</blockquote>
<br></div>
Well I think we have the tags already. Only the naming is different. I´m not sure why you want to rename the tags and break other clients.<div class="Ih2E3d"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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>
</blockquote>
<br></div>
What do you think?<br>
<br>
Cheers<br>
Frank<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Jonathan<br>
_______________________________________________<br>
ghns mailing list<br>
<a href="mailto:ghns@lists.freedesktop.org" target="_blank">ghns@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/ghns" target="_blank">http://lists.freedesktop.org/mailman/listinfo/ghns</a><br>
</blockquote>
<br>
--<div><div></div><div class="Wj3C7c"><br>
Frank Karlitschek<br>
<a href="mailto:frank@opendesktop.org" target="_blank">frank@opendesktop.org</a><br>
<br>
<br>
<br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.jaxtr.com/myselfhimself">http://www.jaxtr.com/myselfhimself</a>