[mapserver-users] Increased Image depth support

Frank Warmerdam warmerdam at pobox.com
Fri Oct 25 18:28:54 EDT 2002


Tyler Mitchell wrote:
> Since mailing list search is down, I thought I'd ask publically about
> increased image depth support.
> Can anyone provide me a update (or a bugzilla bug#) on how/when >8 bit
> support will be available?  I notice that there has been some work on GD
> lately - that's the main holdup isn't it?

Tyler,

The CVS version of MapServer should include full 24bit and also "raw data"
image support.  The 24bit support requires GD 2.0.  The short explanation
of how to use it is to add the following sort of statement to your map file,
and then set IMAGETYPE to a matching name.

eg.

IMAGETYPE png24

OUTPUTFORMAT
   NAME png24
   DRIVER "GD/PNG"
   IMAGEMODE RGB
   TRANSPARENT ON
END

The MapServer 3.7 reference document describes the OUTPUTFORMAT clause here:

   http://mapserver.gis.umn.edu/doc/mapfile-reference.html#outputformat

With this support enabled, 24bit image files (ie JPEG, TIFF, PNG, etc) read
through the GDAL raster layer driver will be carried through as 24bit.  Also
more than 256 vector colors can be used and still get exact colors.

Let me know if you encounter problems.

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent





More information about the mapserver-users mailing list