[Mapserver-users] Mapserver symbols and transparency

James Anderson james at danisat.net
Tue Mar 16 08:30:22 PST 2004


This is a multi-part message in MIME format.

------=_NextPart_000_0007_01C40B84.BDE84140
Content-Type: text/plain;
	charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Hiya,

I am having problems using images with transparency for symbols with the =
pixmap directive.   I am using a .png file as this seems to be the =
easiest.
Here is my problem:  When I use an 8bit png file with transparency, all =
works fine, the symbol overlays over the map.  The problem occurs when I =
use a 24bit png file.  It overlays ok, but the portions of the symbol =
that are transparent become totally transparent in the image output by =
mapserver.  I Am currently using png format for output.   This means =
that I can see my webpage background through the image, and this totally =
sux.   Why is this ?  Am I doing something wrong ?   I would have =
thought that 24bit images with transparency or translucency would be =
combined with whatever layers where below the symbol, but it seems not =
so.  Can anyone help ??

Thanks,

James.

------=_NextPart_000_0007_01C40B84.BDE84140
Content-Type: text/html;
	charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1252">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hiya,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I am having problems using images with =
transparency=20
for symbols with the pixmap directive.   I am using a .png =
file as=20
this seems to be the easiest.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Here is my problem:  When I use an =
8bit png=20
file with transparency, all works fine, the symbol overlays over the =
map. =20
The problem occurs when I use a 24bit png file.  It overlays ok, =
but the=20
portions of the symbol that are transparent become totally transparent =
in the=20
image output by mapserver.  I Am currently using png format for=20
output.   This means that I can see my webpage background =
through the=20
image, and this totally sux.   Why is this ?  Am I doing=20
something wrong ?   I would have thought that 24bit images =
with=20
transparency or translucency would be combined with whatever layers =
where below=20
the symbol, but it seems not so.  Can anyone help ??</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>James.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>

------=_NextPart_000_0007_01C40B84.BDE84140--




More information about the MapServer-users mailing list