[Opensim-dev] Accessing textures via HTTP [bayes]

Kyle Hamilton aerowolf at gmail.com
Tue Mar 17 23:09:59 UTC 2009


There are a couple of ways, depending on the headers that the clients send.

If Linden sends Accept: image/jpeg2000, then the fact that it's
already stored as jp2 shouldn't be a problem.

If MXP sends Accept: image/jpeg, then an internal jp2 to jpg
conversion would need to take place before the datastream was sent.

However, if those Accept: headers don't exist, then an alternate form
would be to change the URL scheme to:

http://assetserver/{assetID}/data
for JP2 and
http://assetserver/{assetID}/data?fmt=image/jpeg
for JPG.

If there's a need to not get just the data, then drop the 'data' part
of the URI, and just append '?fmt=image/jpeg' to it.

My preference would be to rely on the Accept headers, though, as those
refer to specific MIME types that can have specific mappings defined
to/from the server-stored formats.

-Kyle H

On Tue, Mar 17, 2009 at 3:52 PM, Tommi Laukkanen
<tommi.s.e.laukkanen at gmail.com> wrote:
> Can everyone interested read the patch mantis and provide their
> comments how we should proceed with this one:
>
> http://opensimulator.org/mantis/view.php?id=3308
>
> -tommi
> _______________________________________________
> Opensim-dev mailing list
> Opensim-dev at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-dev
>



More information about the Opensim-dev mailing list