I have no current preference for one over the other. I suspect that there may be more options desired in the future besides format so whichever is most easily extended and widely accepted may be the better choice.<br><br><div class="gmail_quote">
On Wed, Dec 8, 2010 at 7:36 AM, Diva Canto <span dir="ltr"><<a href="mailto:diva@metaverseink.com">diva@metaverseink.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
So far, all textures in OpenSim are stored and served as jp2. However, some viewers can't use jp2. Example: Unity3d, for the time being. I would like to improve the GetTexture cap service by adding the ability for it to make conversions on the fly depending on extra data provided by the caller.<br>

<br>
There are two ways of doing this. Which one do people prefer?<br>
<br>
A) Add an extra query parameter: <a href="http://foo.com/GetTexture/?texture_id=" target="_blank">http://foo.com/GetTexture/?texture_id=</a><uuid>&format=<format><br>
<br>
B) Use the Accept and Content-Type headers appropriately.<br>
The request might have<br>
Accept: image/png, image/jp2<br>
And the response might have<br>
Content-Type: image/png<br>
<br>
Diva / Crista<br>
<br>
_______________________________________________<br>
Opensim-dev mailing list<br>
<a href="mailto:Opensim-dev@lists.berlios.de" target="_blank">Opensim-dev@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-dev</a><br>
</blockquote></div><br>