This is weird, if I try to open the file in python, it seems to be ok:<br><br>import urllib2<br>import Image<br>from cStringIO import StringIO<br>im = Image.open(StringIO(urllib2.urlopen("<a href="http://otile2.mqcdn.com/tiles/1.0.0/osm/9/264/174.png">http://otile2.mqcdn.com/tiles/1.0.0/osm/9/264/174.png</a>").read()))<br>
print im.format, im.size, im.mode<br><br>but when using mapproxy I still get this message: <br><br>[2012-06-29 11:24:26,823] mapproxy.image.tile - WARNING - unable to load tile <mapproxy.image.ImageSource object at 0x7fc9f0034ad0>, removing it (reason was: decoding error when reading image file)<br>
<br>fyi, this is my source:<br>  osm_tms_mq:<br>    type: tile<br>    url: <a href="http://otile1.mqcdn.com/tiles/1.0.0/osm/%(tms_path)s.png">http://otile1.mqcdn.com/tiles/1.0.0/osm/%(tms_path)s.png</a><br>    grid: global_mercator_osm<br>
    on_error:<br>        202:<br>          response: transparent<br>          cache: True<br><br>and my wms definition:<br> wms:<br>    srs: ['EPSG:2169','EPSG:310024802']<br>    image_formats: ['image/jpeg','image/png']<br>
<br>my test-request: <a href="http://mapproxy:8080/service?VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:2169&BBOX=-5492.29987506387,969.790037458326,168537.735685007,192859.236316351&WIDTH=877&HEIGHT=967&LAYERS=OSM_MQ&STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/png&BGCOLOR=0xFEFFFF&TRANSPARENT=TRUE">http://mapproxy:8080/service?VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:2169&BBOX=-5492.29987506387,969.790037458326,168537.735685007,192859.236316351&WIDTH=877&HEIGHT=967&LAYERS=OSM_MQ&STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/png&BGCOLOR=0xFEFFFF&TRANSPARENT=TRUE</a><br>
<br>I've been using this WMS for a while now and it seems to be only that one tile<br>Any idea?<br>Jeff<br><br><br><div class="gmail_quote">On Wed, Jun 27, 2012 at 11:56 AM, Jeff Konnen <span dir="ltr"><<a href="mailto:jaykayone@gmail.com" target="_blank">jaykayone@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><br><div class="gmail_quote"><div class="im">On Wed, Jun 27, 2012 at 11:50 AM, Oliver Tonnhofer <span dir="ltr"><<a href="mailto:olt@omniscale.de" target="_blank">olt@omniscale.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br>
On 27.06.2012, at 11:36, Jeff Konnen wrote:<br>
> I've found this error in my logs: [2012-06-27 11:33:57,623] mapproxy.image.tile - WARNING - unable to load tile <mapproxy.image.ImageSource object at 0x7f52bc03e350>, removing it (reason was: decoding error when reading image file)<br>


><br>
> It's about this tile: <a href="http://otile2.mqcdn.com/tiles/1.0.0/osm/9/264/174.png" target="_blank">http://otile2.mqcdn.com/tiles/1.0.0/osm/9/264/174.png</a><br>
<br>
</div>Are you sure that this is the right file? MapProxy removes the tile when you see this warning and will re-request it from the source.<br>
<div><br>
> Does anyone have an idea about what this could be about?<br>
<br>
</div>MapProxy/PIL could somehow not read the tile.<br>
<br>
BTW: The tile is a JPEG and not a PNG.<br>
<br></blockquote></div><div><br>That's correct, but the neighbouring tiles are all JPEGs called PNG too and PIL can read them, it's weird..<br> </div><div class="im"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


Regards,<br>
Oliver<br>
<span><font color="#888888"><br>
--<br>
Oliver Tonnhofer    | Omniscale GmbH & Co KG    | <a href="http://omniscale.de" target="_blank">http://omniscale.de</a><br>
<a href="http://mapproxy.org" target="_blank">http://mapproxy.org</a> | <a href="https://bitbucket.org/olt" target="_blank">https://bitbucket.org/olt</a> | @oltonn<br>
<br>
<br>
<br>
<br>
</font></span></blockquote></div></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>Jeff Konnen<br><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Jeff Konnen<br><br>