<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 Steve, <br><br>I try to do that but didn't work. The image appear all black. I use the Processing directive for the 3 bands and also I remove to test but nothing happen. Can be a problem of image...<br>To test in the browser if I put Format=image/png:mode=24bit don't work, the error said that is not supported, but If I use FORMAT=PNG24 that work but the image came all black. I'm using the last version of MapServer 6.2.0.<br><br>Also with output and without output the image appear all black. I have the image store in PostgreSQL DB with 145MB size.  <br><br>Any idea? <br><br>Best Regards<br>José Santos <br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: Steve.Lime@state.mn.us<br>To: zpsantos1@hotmail.com; mapserver-users@lists.osgeo.org<br>Subject: RE: [mapserver-users] MapServer and 24bit Images<br>Date: Fri, 7 Dec 2012 19:41:04 +0000<br><br>



<style><!--
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman","serif";}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman","serif";}
.ExternalClass p.ecxMsoAcetate, .ExternalClass li.ecxMsoAcetate, .ExternalClass div.ecxMsoAcetate
{margin-bottom:.0001pt;font-size:8.0pt;font-family:"Tahoma","sans-serif";}
.ExternalClass span.ecxBalloonTextChar
{font-family:"Tahoma","sans-serif";}
.ExternalClass span.ecxEmailStyle20
{font-family:"Calibri","sans-serif";color:#1F497D;}
.ExternalClass .ecxMsoChpDefault
{font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;}
.ExternalClass div.ecxWordSection1
{page:WordSection1;}

--></style>


<div class="ecxWordSection1">
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I’m assuming you’re using MapServer 6.x… If so then your output format may be the issue. GD doesn’t support 24-bit output, just 8-bit. Try deleting the OUTPUTFORMAT</span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">and setting IMAGETYPE PNG24 and see if that works.</span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Steve</span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="ecxMsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> José Pedro Santos [mailto:zpsantos1@hotmail.com]
<br>
<b>Sent:</b> Friday, December 07, 2012 8:36 AM<br>
<b>To:</b> Lime, Steve D (DNR); mapserver-users@lists.osgeo.org<br>
<b>Subject:</b> RE: [mapserver-users] MapServer and 24bit Images</span></p>
</div>
</div>
<p class="ecxMsoNormal"> </p>
<div>
<p class="ecxMsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Hi Steve,
<br>
<br>
Thanks for the information. Basically I want only to display the layer (as WMS service) in the browser for testing or a real client. The layer have 3 bands and is a 24bit image<br>
<br>
My MAPFILE is this one(OUTPUTFORMAT and LAYER parameters):<br>
<br>
OUTPUTFORMAT # Parameter Outputformat<br>
 NAME png24<br>
 DRIVER "GD/PNG"<br>
 MIMETYPE "image/png;mode=24bit"<br>
 EXTENSION PNG<br>
 IMAGEMODE RGB<br>
END # End parameter Outputformat<br>
<br>
LAYER # beginning of the layer parameter<br>
 NAME "fapartest"<br>
 TYPE RASTER<br>
 STATUS ON<br>
 DATA "PG:host=localhost port=5432 dbname='mydb' user='postgres' password='****' schema='public' table='mytable' mode='2'"<br>
 PROCESSING "NODATA=0"<br>
 PROCESSING "SCALE=AUTO"<br>
 PROCESSING "BANDS=1,2,3"<br>
.........<br>
<br>
I don't have class parameter since I don't want to classify the map just visualize the information. Any idea?<br>
<br>
Best Regards and thanks,<br>
<br>
José Santos <br>
<br>
<br>
</span></p>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">> From:
<a href="mailto:Steve.Lime@state.mn.us">Steve.Lime@state.mn.us</a><br>
> To: <a href="mailto:zpsantos1@hotmail.com">zpsantos1@hotmail.com</a>; <a href="mailto:mapserver-users@lists.osgeo.org">
mapserver-users@lists.osgeo.org</a><br>
> Subject: RE: [mapserver-users] MapServer and 24bit Images<br>
> Date: Tue, 4 Dec 2012 19:26:01 +0000<br>
> <br>
> I display true-color imagery all the time. I suspect that's not what you're trying to do though. You'll have to be more specific on format, perhaps post a layer definition?<br>
> <br>
> Steve<br>
> <br>
> -----Original Message-----<br>
> From: <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a> [<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mailto:mapserver-users-bounces@lists.osgeo.org</a>] On Behalf Of Saint<br>
> Sent: Monday, December 03, 2012 10:06 AM<br>
> To: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
> Subject: [mapserver-users] MapServer and 24bit Images<br>
> <br>
> Dear all, <br>
> <br>
> I would like to have this confirmation, MapServer support 24bit image with 3 bands? I have one 24bit image 1 band and I can see in the browser but the other with 3 bands I can't. Only appear the the outline line of the class e not the image.
<br>
> <br>
> Many thanks<br>
> José Santos <br>
> <br>
> <br>
> <br>
> -----<br>
> José Santos<br>
> GIS Analyst<br>
> --<br>
> View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/MapServer-and-24bit-Images-tp5020409.html" target="_blank">
http://osgeo-org.1560.n6.nabble.com/MapServer-and-24bit-Images-tp5020409.html</a><br>
> Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
> _______________________________________________<br>
> mapserver-users mailing list<br>
> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></span></p>
</div>
</div>
</div></div>                                          </div></body>
</html>