[Geoserver-users] overlaying images without losing brightness

hi,
it's not an strictly issue related to Geoserver but I'm using Geoserver and
hope someone can give me some idea....
I need to overlay WMS images on server-side (PHP). The GetMap requests are
using transparent=TRUE parameter;

I'm currently using imagecopymerge command from PHP's GD library as I cannot
put all the layers in the same GetMap request (the SLDs are created on the
fly based on user params); so I have different images to overlay, each one
with his SLD.

As imagecopymerge command only works if you set up opacity parameter for the
layer to be overlayed, the resulting image, at the end, loses some
brightness.

you can try this URL that overlays two images (resulting of 2 GetMaps):

http://edit.csic.es/fitxers/TDWG_hatch.php?ad=tdwg2/a:Caribbean|b:Mexico||tdwg4/c:Nicaragua,Chiapas||tdwg3/a:MXC|b:MXE,MXG|c:MXT&as=a:d7add2|b:ab8dc9F|c:f2e227|d:f7555d&ms=700x450&bbox=\-118,\-33,\-30,32

and this one, just using one image (thats the brightness I wanna have even
if I overlay two images)

http://edit.csic.es/fitxers/TDWG_hatch.php?ad=tdwg3/a:MXC|b:MXE,MXG|c:MXT&as=a:d7add2|b:ab8dc9F|c:f2e227|d:f7555d&ms=700x450&bbox=\-118,\-33,\-30,32

the worse is that even if there is no symbolization (dynamic SLD) for one of
the layers (see URL below, where we add countries border without symbol and
transparent=TRUE parameter)...

http://edit.csic.es/fitxers/TDWG_hatch.php?l=earth&ad=tdwg3/a:MXC|b:MXE,MXG|c:MXT&as=a:d7add2|b:ab8dc9F|c:f2e227|d:f7555d&ms=700x450&bbox=\-118,\-33,\-30,32

Is there some solution for that?
someone suggested me to use ImageMagick. Can someone give me an idea if it
should work with (or without) ImageMagick?

thanks a lot,
Pere

Pere Roca Ristol
BiĆ²leg i especialista GIS
Museo Nacional de Ciencias Naturales (CSIC)
Visita l'EDIT mapViewer!
http://edit.csic.es/edit_geo/prototype/edit.html
--
View this message in context: http://www.nabble.com/overlaying-images-without-losing-brightness-tp20304982p20304982.html
Sent from the GeoServer - User mailing list archive at Nabble.com.