<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Times New Roman, Times, serif">Happy New Year, all.<br>
<br>
I'm porting my applications from MapServer 5.7 to 6.0.1, and I am
unable to get 8-bit palette output. The MapScript commands are:<br>
<br>
$oMap->outputformat->set('driver','GD/PNG');<br>
$oMap->outputformat->set('imagemode',MS_IMAGEMODE_PC256);<br>
<br>
which give me the following warning, and no image:<br>
<br>
</font><b>Warning</b>: mapObj::draw() [<a
href="http://mapserver.sara.nl/calligo/zl//maps/k1832/mapobj.draw">mapobj.draw</a>]:
[MapServer Error]: agg2CreateImage(): AGG2 driver only supports RGB
or RGBA pixel models<br>
<br>
<font face="Times New Roman, Times, serif">I tried every combination
I coud think of, with GIF and GDAL, and got always the same
result. MapServer was compiled with gd-support:<br>
<br>
MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS
SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE<br>
<br>
Any idea, someone?<br>
<br>
Jan<br>
</font>
</body>
</html>