transparency of rotated GIF files

Richard Duivenvoorde rdmailings at DUIF.NET
Thu Jun 28 11:55:28 PDT 2007


Hi Roy,

I've been fiddling with this also, but was not successfull. I found that 
it's only possible to rotate 90, 180 and 270 degree's WITH transparency, 
but only with png24 (not png8), all other degrees will result in some 
semitransparent block around the symbol.
Somebody suggested problems with the underlying gdlib at that time?

If you (or somebody else) manage(s) to get this working: please let 
me/us know.

for example see:
http://www.nabble.com/Re%3A-Problem%3A-ANGLEITEM-and-TRANSPARENT-tf3490343.html#a9872743

Richard Duivenvoorde


Roy Braam wrote:
> Hai,
> 
> I've got a question about the transparency of rotated GIF files. Perhaps 
> it's asked a many times but i can't find a answer on the internet.
> 
> The layer:
> LAYER
>     STATUS OFF
>     METADATA
>         "wms_title"                "somelayer"       
>       END
>     CONNECTIONTYPE postgis
>     NAME "somelayer"
>     CONNECTION "user=postgres password=xxxx dbname=xxxx host=xxxxx"
>     DATA "the_geom from somelayer"
>     #MAXSCALE 100000
>     TYPE POINT
>     DUMP TRUE
>     TEMPLATE bla
>     TOLERANCE 10
>     TRANSPARENCY alpha
>     CLASS
>         EXPRESSION ('[s]'="B")
>         NAME "Brug"
>         STYLE   
>             ANGLE [road_direction]
>             COLOR 0 0 255
>             SYMBOL "bridge.gif"
>         END
>     END
> END
> 
> If i don't rotate the image then the image is transparent but if i add 
> the property angle [road_direction] the image rotates fine but isn't 
> transparent any more. How can a i solv this problem?
> 
> Tia,
> 
> Roy



More information about the MapServer-users mailing list