<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1505" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Ok, figured it out.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>If the "imagetype" in the mapfile is not set to
GIF, then a GIF created by php_mapscript/GD will not have its transparency set
correctly. I think I remember running into that problem once with
chameleon.....</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>All is solved now....... got my transparent tiles
above my full-coloured ones in IE.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>--------------------------------------------------------------------------------<BR>From:
<A
href="mailto:ka-map-users-bounces@lists.maptools.org">ka-map-users-bounces@lists.maptools.org</A>
[mailto:ka-map-users-bounces@lists.maptools.org] On Behalf Of Delfos,
Jacob<BR>Sent: 9 August 2005 11:22<BR>To: <A
href="mailto:ka-map-users@lists.maptools.org">ka-map-users@lists.maptools.org</A><BR>Subject:
[ka-Map-users] GIF transparency</FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>Hi List, </DIV>
<DIV> </DIV>
<DIV>Just experimenting with ka-map, making it output GIF images for all layers
that are assumed not to be full-colour (raster), so that I can have transparency
in AND 24bit colour in IE without the PNG hack. All works well, and I get the
right imagetype. Only thing is.... My GIF's are not transparent. Even if I use
Ka-map the normal way (no magic), specifying GIF as imagetype, I don't get
transparency. </DIV>
<DIV> </DIV>
<DIV>In tile.php, it says: </DIV>
<DIV> </DIV>
<DIV>------------------------------------------------------------------
<BR>$nTransparent = imagecolorallocate($oTile, $oMap->imagecolor->red,
$oMap->imagecolor->green, $oMap->imagecolor->blue);
<BR>imagecolortransparent( $oTile,$nTransparent);
<BR>------------------------------------------------------------------ </DIV>
<DIV> </DIV>
<DIV>When I request the GIF properties in Irfanview, it tells me the transparent
colour is "0". I assume that is 0, 0, 0. But transparency is set to the
imagecolour of my map, which is 255,255,255 (correctly picked up in tile.php, I
checked that).</DIV>
<DIV> </DIV>
<DIV>I'm using php_mapscript_46. Any ideas? </DIV>
<DIV> </DIV>
<DIV>Regards, </DIV>
<DIV> </DIV>
<DIV>Jacob </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>JACOB DELFOS<BR>SPATIAL INFORMATION ANALYST<BR>Maunsell Australia Pty
Ltd<BR>629 Newcastle Street, Leederville, WA 6007 <BR>PO Box 81, Leederville, WA
6902 <BR>Western Australia <BR>ABN 20 093 846 925</DIV>
<DIV> </DIV>
<DIV>Tel + 61 8 9281 6185<BR>Fax + 61
8 9281 6297<BR><A
href="mailto:jacob.delfos@maunsell.com">jacob.delfos@maunsell.com</A> <BR><A
href="mailto:jacob.delfos@maunsell.com"></A></FONT></DIV></BODY></HTML>