[Mapbender-dev] [Mapbender] #528: Black background in legend PDF-output

Mapbender mapbender_dev at lists.osgeo.org
Tue Sep 8 10:57:35 EDT 2009


#528: Black background in legend PDF-output
--------------------+-------------------------------------------------------
 Reporter:  gerd    |       Owner:  dev        
     Type:  defect  |      Status:  new        
 Priority:  minor   |   Milestone:  2.6 release
Component:  print   |     Version:  2.5.1      
 Keywords:          |  
--------------------+-------------------------------------------------------
 Hi I'm new here and I've got a problem with the legend output from the
 printPDF module. When I use AGG/PNG Driver in the mapfile from MapServer
 with TRANSPARENT ON option (see file), the GetLegendGraphic-request
 returns an transparent legend graphic. But when I try to print an PDF-
 output with a legend these legend graphics get an black background. I
 found out that there maybe a problem in class_SaveLegend.php. Just turned
 line 51
         imagepng($img,$legend_filename);
 into
         imagepng($image,$legend_filename);
 fixed it for me.
 Maybe this helps...

-- 
Ticket URL: <http://trac.osgeo.org/mapbender/ticket/528>
Mapbender <http://www.mapbender.org/>
Mapbender


More information about the Mapbender_dev mailing list