<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2657.73">
<TITLE>RE: [Chameleon] Image format of map</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Arial">Paul,</FONT><FONT FACE="Times New Roman"> </FONT>
<BR><FONT SIZE=2 FACE="Arial">A while ago I made a change that allows the image format to change on the fly (based on layer-use). It wasn't very hard to do, so it could probably be controlled by the user during a session easily.</FONT><FONT FACE="Times New Roman"> </FONT></P>

<P><FONT SIZE=2 FACE="Arial">I think it might be useful to automatically force 24bit colours when a full-colour dataset is loaded. This is how I have it set up for our sites. By default it uses 8bit gif. It picks up a metadata tag which specifies whether to force 24bit jpeg. But perhaps chameleon could detect automatically whether a full-colour image is in use.</FONT><FONT FACE="Times New Roman"> </FONT></P>

<P><FONT SIZE=2 FACE="Arial">Maybe the config file could be changed, such that you can set &quot;image_type&quot; to &quot;auto&quot;, so that it will do that.</FONT><FONT FACE="Times New Roman"> </FONT>
<BR><FONT SIZE=2 FACE="Arial">regards,</FONT><FONT FACE="Times New Roman"> </FONT>
<BR><FONT SIZE=2 FACE="Arial">Jacob</FONT><FONT FACE="Times New Roman"> </FONT>
<BR><FONT SIZE=2 FACE="Arial">JACOB DELFOS<BR>
SPATIAL INFORMATION ANALYST<BR>
Maunsell Australia Pty Ltd<BR>
629 Newcastle Street, WA 6007<BR>
PO Box 81, WA 6902<BR>
Leederville<BR>
Western Australia<BR>
ABN 20 093 846 925</FONT><FONT FACE="Times New Roman"> </FONT>
<BR><FONT SIZE=2 FACE="Arial">Tel + 61 8 9281 6185<BR>
Fax + 61 8 9281 6297<BR>
</FONT><A HREF="mailto:jacob.delfos@maunsell.com"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">jacob.delfos@maunsell.com</FONT></U></A><FONT FACE="Times New Roman"> </FONT>
<BR><FONT SIZE=2 FACE="Arial">-----Original Message-----<BR>
From: </FONT><A HREF="mailto:chameleon-bounces@lists.maptools.org"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">chameleon-bounces@lists.maptools.org</FONT></U></A><FONT SIZE=2 FACE="Arial"> [</FONT><A HREF="mailto:chameleon-bounces@lists.maptools.org"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">mailto:chameleon-bounces@lists.maptools.org</FONT></U></A><FONT SIZE=2 FACE="Arial">] On Behalf Of Paul Spencer<BR>
Sent: Thursday, 28 April 2005 9:57 PM<BR>
To: Bart van den Eijnden<BR>
Cc: </FONT><A HREF="mailto:chameleon@lists.maptools.org"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">chameleon@lists.maptools.org</FONT></U></A><BR>
<FONT SIZE=2 FACE="Arial">Subject: Re: [Chameleon] Image format of map</FONT><FONT FACE="Times New Roman"> </FONT>
<BR><FONT SIZE=2 FACE="Arial">I think we need a way to control this from the application rather than only being able to do it through the configuration file. In fact, you actually can change it in the index.phtml file but it requires some mapscript to do it.</FONT><FONT FACE="Times New Roman"> </FONT></P>

<P><FONT SIZE=2 FACE="Arial">The original reason for having it in the configuration file was because we were working only with Web Map Context documents so there was no map file to start with ... hence no image format.</FONT><FONT FACE="Times New Roman"> </FONT></P>

<P><FONT SIZE=2 FACE="Arial">I think a reasonable change would be for chameleon to use the map file image format and to move this configuration parameter into the cwc2.xml file so that it only affects the service instance mode.</FONT><FONT FACE="Times New Roman"> </FONT></P>

<P><FONT SIZE=2 FACE="Arial">Comments and suggestions welcome</FONT><FONT FACE="Times New Roman"> </FONT>
<BR><FONT SIZE=2 FACE="Arial">Paul</FONT><FONT FACE="Times New Roman"> </FONT>
<BR><FONT SIZE=2 FACE="Arial">Bart van den Eijnden wrote:<BR>
&gt; Hi,<BR>
&gt;<BR>
&gt; did you check the Chameleon config file (chameleon.xml)?<BR>
&gt;<BR>
&gt; &lt;context-param&gt;<BR>
&gt; &lt;param-name&gt;image_type&lt;/param-name&gt;<BR>
&gt; &lt;param-value&gt;PNG&lt;/param-value&gt;<BR>
&gt; &lt;description&gt;Output image type (eg: PNG, GIF). Must be uppercase. This image format MUST be supported by your browser and GD (on the server). Please don't change that value unless you know what you'r doing.&lt;/description&gt;<BR>
&gt; &lt;/context-param&gt;<BR>
&gt;<BR>
&gt; The param value normally corresponds with the NAME of an output format object from your MAP file which you want to use.<BR>
&gt;<BR>
&gt; Best regards,<BR>
&gt; Bart<BR>
&gt;<BR>
&gt; Bart van den Eijnden<BR>
&gt; Syncera-ITSolutions<BR>
&gt; Postbus 270<BR>
&gt; 2600 AG DELFT<BR>
&gt;<BR>
&gt; tel.nr.: 015-7512436<BR>
&gt; email: </FONT><A HREF="mailto:BEN@Syncera-ITSolutions.nl"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">BEN@Syncera-ITSolutions.nl</FONT></U></A><BR>
<FONT SIZE=2 FACE="Arial">&gt;<BR>
&gt;<BR>
&gt;&gt;&gt;&gt;Dirk Jesko &lt;</FONT><A HREF="mailto:ml.dje@geocontent.de"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">ml.dje@geocontent.de</FONT></U></A><FONT SIZE=2 FACE="Arial">&gt; 04/28/05 09:52am &gt;&gt;&gt;<BR>
&gt;<BR>
&gt; Hi,<BR>
&gt;<BR>
&gt; Simple question: How do I choose the format for the map image<BR>
&gt; generated by a MapDHTML widget? Even though, my mapfile only specifies<BR>
&gt; jpeg, I always get a 256 color PNG. Somehow, I can not find a way to<BR>
&gt; change this. Since I have layers with true color imagery, 256 colors<BR>
&gt; are insufficient.<BR>
&gt;<BR>
&gt; Thanks,<BR>
&gt; Dirk Jesko<BR>
&gt;<BR>
&gt; _______________________________________________<BR>
&gt; Chameleon mailing list<BR>
&gt; </FONT><A HREF="mailto:Chameleon@lists.maptools.org"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">Chameleon@lists.maptools.org</FONT></U></A><BR>
<FONT SIZE=2 FACE="Arial">&gt; </FONT><A HREF="http://lists.maptools.org/mailman/listinfo/chameleon"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://lists.maptools.org/mailman/listinfo/chameleon</FONT></U></A><BR>
<FONT SIZE=2 FACE="Arial">&gt;<BR>
&gt;<BR>
&gt; _______________________________________________<BR>
&gt; Chameleon mailing list<BR>
&gt; </FONT><A HREF="mailto:Chameleon@lists.maptools.org"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">Chameleon@lists.maptools.org</FONT></U></A><BR>
<FONT SIZE=2 FACE="Arial">&gt; </FONT><A HREF="http://lists.maptools.org/mailman/listinfo/chameleon"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://lists.maptools.org/mailman/listinfo/chameleon</FONT></U></A><BR>
<FONT SIZE=2 FACE="Arial">&gt;</FONT> 
<BR><FONT SIZE=2 FACE="Arial">--<BR>
+-----------------------------------------------------------------+<BR>
|Paul Spencer </FONT><A HREF="mailto:pspencer@dmsolutions.ca"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">pspencer@dmsolutions.ca</FONT></U></A><FONT SIZE=2 FACE="Arial"> |<BR>
+-----------------------------------------------------------------+<BR>
|Applications &amp; Software Development |<BR>
|DM Solutions Group Inc </FONT><A HREF="http://www.dmsolutions.ca/|"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://www.dmsolutions.ca/|</FONT></U></A><BR>
<FONT SIZE=2 FACE="Arial">+-----------------------------------------------------------------+<BR>
_______________________________________________<BR>
Chameleon mailing list<BR>
</FONT><A HREF="mailto:Chameleon@lists.maptools.org"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">Chameleon@lists.maptools.org</FONT></U></A><BR>
<A HREF="http://lists.maptools.org/mailman/listinfo/chameleon"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://lists.maptools.org/mailman/listinfo/chameleon</FONT></U></A><BR>

</P>

</BODY>
</HTML>