[Chameleon] Image format of map
Delfos, Jacob
jacob.delfos at maunsell.com
Thu Apr 28 18:28:20 EDT 2005
Paul,
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.
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.
Maybe the config file could be changed, such that you can set "image_type"
to "auto", so that it will do that.
regards,
Jacob
JACOB DELFOS
SPATIAL INFORMATION ANALYST
Maunsell Australia Pty Ltd
629 Newcastle Street, WA 6007
PO Box 81, WA 6902
Leederville
Western Australia
ABN 20 093 846 925
Tel + 61 8 9281 6185
Fax + 61 8 9281 6297
jacob.delfos at maunsell.com <mailto:jacob.delfos at maunsell.com>
-----Original Message-----
From: chameleon-bounces at lists.maptools.org
<mailto:chameleon-bounces at lists.maptools.org>
[mailto:chameleon-bounces at lists.maptools.org
<mailto:chameleon-bounces at lists.maptools.org> ] On Behalf Of Paul Spencer
Sent: Thursday, 28 April 2005 9:57 PM
To: Bart van den Eijnden
Cc: chameleon at lists.maptools.org <mailto:chameleon at lists.maptools.org>
Subject: Re: [Chameleon] Image format of map
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.
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.
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.
Comments and suggestions welcome
Paul
Bart van den Eijnden wrote:
> Hi,
>
> did you check the Chameleon config file (chameleon.xml)?
>
> <context-param>
> <param-name>image_type</param-name>
> <param-value>PNG</param-value>
> <description>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.</description>
> </context-param>
>
> The param value normally corresponds with the NAME of an output format
object from your MAP file which you want to use.
>
> Best regards,
> Bart
>
> Bart van den Eijnden
> Syncera-ITSolutions
> Postbus 270
> 2600 AG DELFT
>
> tel.nr.: 015-7512436
> email: BEN at Syncera-ITSolutions.nl <mailto:BEN at Syncera-ITSolutions.nl>
>
>
>>>>Dirk Jesko <ml.dje at geocontent.de <mailto:ml.dje at geocontent.de> >
04/28/05 09:52am >>>
>
> Hi,
>
> Simple question: How do I choose the format for the map image
> generated by a MapDHTML widget? Even though, my mapfile only specifies
> jpeg, I always get a 256 color PNG. Somehow, I can not find a way to
> change this. Since I have layers with true color imagery, 256 colors
> are insufficient.
>
> Thanks,
> Dirk Jesko
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org <mailto:Chameleon at lists.maptools.org>
> http://lists.maptools.org/mailman/listinfo/chameleon
<http://lists.maptools.org/mailman/listinfo/chameleon>
>
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org <mailto:Chameleon at lists.maptools.org>
> http://lists.maptools.org/mailman/listinfo/chameleon
<http://lists.maptools.org/mailman/listinfo/chameleon>
>
--
+-----------------------------------------------------------------+
|Paul Spencer pspencer at dmsolutions.ca <mailto:pspencer at dmsolutions.ca> |
+-----------------------------------------------------------------+
|Applications & Software Development |
|DM Solutions Group Inc http://www.dmsolutions.ca/|
<http://www.dmsolutions.ca/|>
+-----------------------------------------------------------------+
_______________________________________________
Chameleon mailing list
Chameleon at lists.maptools.org <mailto:Chameleon at lists.maptools.org>
http://lists.maptools.org/mailman/listinfo/chameleon
<http://lists.maptools.org/mailman/listinfo/chameleon>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20050429/a77c6795/attachment.html
More information about the Chameleon
mailing list