[Mapserver-users] Problems drawing JPEG Raster with Transparency

Richard Gould rgould at refractions.net
Mon May 3 14:49:26 EDT 2004


So I have this JPEG layer that I wish to draw on top of a couple other 
Shapefile layers, and I want it to be translucent. So in the mapfile I 
have set:
OFFSITE 255 255 255

And everything I want to be transparent is set to white (255, 255, 255).

However, when the layers are rendered and drawn, all the borders around 
the non-transparent parts of the raster are surrounded by a near-white 
(252, 252, 252) border.

You can see what I mean at: http://gislab-60.unbc.ca/viewer/out/problem.png
The grey layers are shapefiles, the greenish-white layer is my JPEG raster.

Does anyone have any idea how to solve this problem?

Thanks,

Richard



More information about the mapserver-users mailing list