Sorry for the triple reply but I managed to solve it by editing the Mapserver/Untiled.js file to have default image type as png24.<br><br><div><span class="gmail_quote">On 7/11/07, <b class="gmail_sendername">Bradley Mclain
</b> <<a href="mailto:bradleym06@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">bradleym06@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Little update which might help shed some light on the matter. I saved that particular layer and it is a PNG format
<br> not PNG24 or jpeg, so somehow OpenLayers request to Mapserver is ignoring the new formats.<br><br>I did WMS URL requests to Mapserver and it returns the correct formats.
<div><span><br><br><div><span class="gmail_quote">On 7/11/07, <b class="gmail_sendername">Bradley Mclain</b> <<a href="mailto:bradleym06@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
bradleym06@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
For some reason this is not working for me, I changed the settings in the Mapfile and defined the OUTPUTFORMAT and then added the format:'image/png', to my Openlayers folder. I even tried changing my mapfile to export as jpeg so as to match Openayers but no luck.
<br><br>Could it have something to do with that I am using the MapServer.Untiled layer function instead of a WMS.Untiled layer?<div><span><br><br><div><span class="gmail_quote">On 7/10/07,
<b class="gmail_sendername">Andrew Hughes</b>
<<a href="mailto:azza@lisasoft.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">azza@lisasoft.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
Bart's correct... but just be warned.... jpeg is A LOT smaller is size
than png-24. There's a reason why jpeg is the default in OpenLayers.<br>
<br>
--AH<div><span><br>
<br>
Bart van den Eijnden (OSGIS) wrote:
<blockquote cite="http://mid69fcb8fefbc45268e4a3e26376811703@145.50.39.11" type="cite">
<pre>OpenLayers uses jpeg by default for WMS layers, so change it in the<br>constructor of your WMS.Untiled layer:<br><br>'format':'image/png', i.e.:<br><br>baselayer0 = new OpenLayers.Layer.WMS.Untiled
<br><br><br>( "Standaard",<br> <br><a href="http://test.intranet.rijkswaterstaat.nl/services/geoservices/startkaart?" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">"http://test.intranet.rijkswaterstaat.nl/services/geoservices/startkaart?"
<br><br><br></a>,<br>{layers: 'startkaart', 'format':'image/png', 'transparent':'TRUE'},<br>{'numZoomLevels': 12, 'ratio':1, isBaseLayer: true} ); <br><br>Also check you have image/png mapped as a mimetype for PNG24 in your
<br><br><br><br>Mapserver MAP file (OUTPUTFORMAT section).<br><br>Best regards,<br>Bart<br><br>--<br>Bart van den Eijnden<br>OSGIS, Open Source GIS<br><a href="http://www.osgis.nl" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.osgis.nl</a>
--------- Oorspronkelijk bericht --------
Van: Bradley Mclain <a href="mailto:bradleym06@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"><bradleym06@gmail.com></a>
Naar: OpenLayers ML <a href="mailto:dev@openlayers.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"><dev@openlayers.org></a>
Onderwerp: [OpenLayers-Dev] Poor Image Quality
Datum: 10/07/07 05:07
</pre>
<blockquote type="cite">
<pre>I am importing an image as an untiled Mapserver layer into OpenLayers and<br> </pre>
</blockquote>
<pre>it is of extremely good quality but when it shows up in OpenLayers it&#39;s<br>quality is terrible.The image when viewed through Mapserver is not as good<br>as the original but it still much better than what it is showing up as in
<br><br><br><br>OpenLayers. I have my Mapserver image format as PNG24.<br> </pre>
<blockquote type="cite">
<pre>Any ideas on what might be causing this and how to fix it?CheersBrad<br><br><br><br><br><br>_______________________________________________<br>Dev mailing list<br><a href="mailto:Dev@openlayers.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Dev@openlayers.org</a>
<a href="http://openlayers.org/mailman/listinfo/dev" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://openlayers.org/mailman/listinfo/dev</a>
</pre>
</blockquote>
<pre>_______________________________________________<br>Dev mailing list<br><a href="mailto:Dev@openlayers.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Dev@openlayers.org</a>
<a href="http://openlayers.org/mailman/listinfo/dev" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://openlayers.org/mailman/listinfo/dev</a>
</pre>
</blockquote>
<br>
<br>
</span></div><div>-- <br>
<br>
Regards,<br>
<br>
<b>Andrew Hughes</b><br>
Software Engineer<br>
LISAsoft Pty. Ltd. (Adelaide)<br>
<br>
<hr color="#003466">
<table align="center">
</table>
<table align="center" border="0">
<tbody>
<tr>
<td colspan="5" align="center"><a href="http://www.lisasoft.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
<h3>LISAsoft Pty. Ltd.</h3>
</a></td>
</tr>
<tr align="center" valign="top">
<td><b>ADELAIDE Office</b><br>
<a href="http://terrapages.net/mapbutton/RetrieveButtonServlet?buttonID=4" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"><img border="0"></a><br>
38 Greenhill Road<br>
Wayville SA 5034<br>
Australia<br>
<b>Telephone +61 8 8272 1555</b><br>
<b>Facsimile +61 8 8271 1199</b> </td>
<td width="20"> <br>
</td>
<td><b>SYDNEY Office</b><br>
<a href="http://terrapages.net/mapbutton/RetrieveButtonServlet?buttonID=1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"><img border="0"></a><br>
Suite 112 The Lower Deck<br>
Jones Bay Wharf<br>
19-21 Pirrama Road<br>
Pyrmont NSW 2009 AUS<br>
<b>Telephone +61 2 8570 5060</b><br>
<b>Facsimile +61 2 8570 5099</b> </td>
<td width="20"> <br>
</td>
<td><b>MELBOURNE Office</b><br>
<a href="http://terrapages.net/mapbutton/RetrieveButtonServlet?buttonID=3" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"><img border="0"></a><br>
Level 7 520 Collins Street<br>
Melbourne VIC 3000<br>
Australia<br>
<b>Telephone +61 3 9629 1799</b><br>
<b>Facsimile +61 3 9629 4955</b> </td>
</tr>
</tbody>
</table>
<hr color="#003466">
</div>
</div>
<br>_______________________________________________<br>Dev mailing list<br><a href="mailto:Dev@openlayers.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Dev@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/dev" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://openlayers.org/mailman/listinfo/dev</a><br><br><br clear="all"></blockquote></div><br>
</span></div></blockquote></div><br>
</span></div></blockquote></div><br>