<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Dear Jeff, <br><br>When I was retriving the GetCapabilities I realise this:<br><br><Format>image/png</Format><Format>image/jpeg</Format><Format>image/gif</Format><Format>image/png; mode=8bit</Format><br><br>So, the mode is 8bit format so don't allow images from 24bits. <br><br>How can I change this?<br><br>Best Regards,<br>José Santos <br><br><div><div id="SkyDrivePlaceholder"></div>> Date: Fri, 23 Nov 2012 09:59:43 -0400<br>> From: jmckenna@gatewaygeomatics.com<br>> To: ms4w-users@lists.maptools.org<br>> Subject: Re: [MS4W-Users] Image 24 Bit<br>> <br>> On 12-11-23 9:27 AM, José Pedro Santos wrote:<br>> > Dear all,<br>> > <br>> > I'm attempting to classify images of 24 bits but I always have the error<br>> > saying this: ........Unable to access file. Attempt to classify 24bit<br>> > image, this is unsupported.<br>> > <br>> > My Mapfile is this one:<br>> > <br>> > ...........<br>> > <br>> > IMAGETYPE "png24"<br>> > <br>> > ..........<br>> > <br>> > OUTPUTFORMAT # Parameter Output<br>> > NAME png24<br>> > DRIVER "GD/PNG"<br>> > MIMETYPE "image/png"<br>> > EXTENSION PNG<br>> > IMAGEMODE RGBA<br>> > TRANSPARENT ON<br>> > END # end of parameter Output<br>> > <br>> > <br>> > and in the expression of GetMap I use FORMAT=image/png<br>> > <br>> > In the Layer description I have the special processing directives to<br>> > processed the 3 bands. But If put just 2 appear one empty image not the<br>> > error. I already read some documentation but I can't succeed.<br>> > <br>> > any idea?<br>> > <br>> > Many thanks and best regards,<br>> > <br>> > José Santos<br>> <br>> Hello José,<br>> <br>> It is difficult for me to comment without testing your local file.<br>> However if I were you I might:<br>> <br>> - in your OUTPUTFORMAT object I would:<br>> - change "GD/PNG" to "AGG/PNG"<br>> - change "RGBA" to "RGB"<br>> - remove "TRANSPARENT ON"<br>> <br>> <br>> -jeff<br>> <br>> <br>> <br>> <br>> -- <br>> Jeff McKenna<br>> MapServer Consulting and Training Services<br>> http://www.gatewaygeomatics.com/<br>> <br>> <br>> _______________________________________________<br>> MS4W-Users mailing list<br>> MS4W-Users@lists.maptools.org<br>> http://lists.maptools.org/mailman/listinfo/ms4w-users<br></div>                                            </div></body>
</html>