Frank,<br><br>The ECW is already in a compressed format, so this means that the image is compressed another 95%?&nbsp; This additional compression is for performance purposes?; does it affect the image quality?<br><br>Thanks,<br>
<br>John<br><br><div><span class="gmail_quote">On 11/30/06, <b class="gmail_sendername">Frank Warmerdam</b> &lt;<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
John Mitchell wrote:<br>&gt; Hi Frank,<br>&gt;<br>&gt; I now able to display ECW type files via mapserver within a community<br>&gt; mapbuilder web browser client.&nbsp;&nbsp;I had question on part of the sample map<br>&gt; file that you sent:
<br>&gt; OUTPUTFORMAT<br>&gt;&nbsp;&nbsp;NAME jpeg2000<br>&gt;&nbsp;&nbsp;DRIVER &quot;GDAL/JP2ECW&quot;<br>&gt;&nbsp;&nbsp;MIMETYPE &quot;image/jpeg2000&quot;<br>&gt;&nbsp;&nbsp;FORMATOPTION &quot;TARGET=95&quot;<br>&gt;&nbsp;&nbsp;IMAGEMODE RGB<br>&gt; END<br>&gt;<br>&gt; What does TARGET=95 mean?
<br><br>John,<br><br>This means that I am requesting 95% reduction in image size during<br>compression - ie. 20:1 compression.<br><br>&gt; I am having good success (as far as image quality and small size<br>&gt; downloaded to the browser) with displaying my image data as jpeg within
<br>&gt; community mapbuilder as an example<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;FormatList&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Format current=&quot;1&quot;&gt;image/jpeg&lt;/Format&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/FormatList&gt;<br>&gt; But when I try displaying it as a png as an example.&nbsp;&nbsp;I get poor quality
<br>&gt; as far as the color.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;FormatList&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Format current=&quot;1&quot;&gt;image/png&lt;/Format&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/FormatList&gt;<br><br>You like want PNG24 format.&nbsp;&nbsp;The plain PNG format results in a reduction
<br>to 8bit which causes a lot of damage to the image.&nbsp;&nbsp;The predefined 24bit<br>PNG output format is called &quot;PNG24&quot;, and has a mimetype of<br>&quot;image/png; mode=24bit&quot;<br><br>&gt; What application do you use to create your .ECW files?
<br><br>The original ecw file I was serving from was one I downloaded from<br><a href="http://geotorrent.org">geotorrent.org</a>.&nbsp;&nbsp;But I do sometimes use gdal_translate to produce<br>ecw files.<br><br>Best regards,<br>--<br>
---------------------------------------+--------------------------------------<br>I set the clouds in motion - turn up&nbsp;&nbsp; | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a><br>light and sound - activate the windows | 
<a href="http://pobox.com/~warmerdam">http://pobox.com/~warmerdam</a><br>and watch the world go round - Rush&nbsp;&nbsp;&nbsp;&nbsp;| President OSGeo, <a href="http://osgeo.org">http://osgeo.org</a><br><br></blockquote></div><br><br clear="all">
<br>-- <br>John J. Mitchell