[OSGeo-Discuss] problem using php's GD to overlay images

pere roca ristol peroc79 at gmail.com
Tue Oct 14 07:05:30 PDT 2008

hi all,
I need to overlay two or more images from server-side (PHP) coming from
diferent WMS GetMaps (as I need to create these requests using dynamically
created SLDs for different layers I cannot integrate everything on the same
Getmap). In these GetMaps I include the Transparent=true parameter.

I'm using imagecopymerge from GD php's library to overlay the images. One of
the parameters of this function is a percentage (of pixels of the second
image to be printed over the second image). The problem is that it means
losing brightness.

You can check this URL (as in Mexico there are more than one layer
overlayed, it appears without brightness)

Some idea? some similar function in PHP (or not...) to solve it?

Pere Roca Ristol
Biòleg i especialista GIS
Museo Nacional de Ciencias Naturales (CSIC)
Visita l'EDIT mapViewer!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/discuss/attachments/20081014/3491dbd1/attachment-0002.html>

More information about the Discuss mailing list