<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body 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<br>
<br>
Bart van den Eijnden (OSGIS) wrote:
<blockquote cite="mid69fcb8fefbc45268e4a3e26376811703@145.50.39.11"
type="cite">
<pre wrap="">OpenLayers uses jpeg by default for WMS layers, so change it in the
constructor of your WMS.Untiled layer:
'format':'image/png', i.e.:
baselayer0 = new OpenLayers.Layer.WMS.Untiled( "Standaard",
<a class="moz-txt-link-rfc2396E" href="http://test.intranet.rijkswaterstaat.nl/services/geoservices/startkaart?">"http://test.intranet.rijkswaterstaat.nl/services/geoservices/startkaart?"</a>,
{layers: 'startkaart', 'format':'image/png', 'transparent':'TRUE'},
{'numZoomLevels': 12, 'ratio':1, isBaseLayer: true} );
Also check you have image/png mapped as a mimetype for PNG24 in your
Mapserver MAP file (OUTPUTFORMAT section).
Best regards,
Bart
--
Bart van den Eijnden
OSGIS, Open Source GIS
<a class="moz-txt-link-freetext" href="http://www.osgis.nl">http://www.osgis.nl</a>
--------- Oorspronkelijk bericht --------
Van: Bradley Mclain <a class="moz-txt-link-rfc2396E" href="mailto:bradleym06@gmail.com"><bradleym06@gmail.com></a>
Naar: OpenLayers ML <a class="moz-txt-link-rfc2396E" href="mailto:dev@openlayers.org"><dev@openlayers.org></a>
Onderwerp: [OpenLayers-Dev] Poor Image Quality
Datum: 10/07/07 05:07
</pre>
<blockquote type="cite">
<pre wrap="">I am importing an image as an untiled Mapserver layer into OpenLayers and
</pre>
</blockquote>
<pre wrap=""><!---->it is of extremely good quality but when it shows up in OpenLayers it&#39;s
quality is terrible.The image when viewed through Mapserver is not as good
as the original but it still much better than what it is showing up as in
OpenLayers. I have my Mapserver image format as PNG24.
</pre>
<blockquote type="cite">
<pre wrap="">Any ideas on what might be causing this and how to fix it?CheersBrad
_______________________________________________
Dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dev@openlayers.org">Dev@openlayers.org</a>
<a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/dev">http://openlayers.org/mailman/listinfo/dev</a>
</pre>
</blockquote>
<pre wrap=""><!---->
_______________________________________________
Dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dev@openlayers.org">Dev@openlayers.org</a>
<a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/dev">http://openlayers.org/mailman/listinfo/dev</a>
</pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <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">
<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"
taget="_blank"><img src="cid:part1.00010207.04000405@lisasoft.com"
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"
taget="_blank"><img src="cid:part1.00010207.04000405@lisasoft.com"
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"
taget="_blank"><img src="cid:part1.00010207.04000405@lisasoft.com"
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>
</body>
</html>