[OpenLayers-Dev] jpeg vs jpg
Jachym Cepicky
jachym.cepicky at gmail.com
Thu Oct 25 08:53:04 EDT 2007
Hi,
no, if I understand it right, TileCache will always save the files with
extension "jpeg", while OpenLayers will always request "jpg" files.
Jachym
Paul Spencer píše v Čt 25. 10. 2007 v 08:49 -0400:
> Jachym,
>
> if I understand it correctly, the image saved on disk has an
> extension of .jpg while the mime type returned by the web server with
> a JPEG image is image/jpeg. So the code is fine and is doing the
> right thing. You just need to specify the correct extension in
> OpenLayers (either 'jpg' or 'jpeg' will do) and in TileCache config
> (again, probably either will do).
>
> Paul
>
> On 25-Oct-07, at 7:57 AM, Jachym Cepicky wrote:
>
> > Hi,
> >
> > in OpenLayers.Layer.Tilecache, around line 55, there is
> >
> > this.extension = (this.extension == 'jpeg') ? 'jpg' : this.extension;
> >
> > in tilecache/TileCache/Layer.py, around line 80, there is
> >
> > if extension.lower() == 'jpg': extension = 'jpeg' # MIME
> >
> > IMHO, it does not make sense, if I understand this well, you can never
> > access JPEG TileCache from OpenLayers
> >
> > Do I understand it well?
> >
> > Thanks
> >
> > Jachym
> > --
> > Jachym Cepicky
> > e-mail: jachym.cepicky at gmail.com
> > URL: http://les-ejk.cz
> > GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub
> >
> > _______________________________________________
> > Dev mailing list
> > Dev at openlayers.org
> > http://openlayers.org/mailman/listinfo/dev
>
> +-----------------------------------------------------------------+
> |Paul Spencer pspencer at dmsolutions.ca |
> +-----------------------------------------------------------------+
> |Chief Technology Officer |
> |DM Solutions Group Inc http://www.dmsolutions.ca/ |
> +-----------------------------------------------------------------+
>
>
>
>
>
--
Jachym Cepicky
e-mail: jachym.cepicky at gmail.com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?=
=?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?=
=?ISO-8859-1?Q?_zpr=E1vy?=
Url : http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20071025/d0ca51d4/attachment.bin
More information about the Dev
mailing list