Opened 15 years ago

Closed 15 years ago

#528 closed defect (fixed)

Black background in legend PDF-output

Reported by: gerd Owned by: dev
Priority: minor Milestone: 2.6.1 release
Component: print Version: 2.5.1
Keywords: Cc: frankjaeger

Description

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...

Attachments (1)

mapfile.map (398 bytes ) - added by gerd 15 years ago.
snippets from mapfile config

Download all attachments as: .zip

Change History (2)

by gerd, 15 years ago

Attachment: mapfile.map added

snippets from mapfile config

comment:1 by astrid_emde, 15 years ago

Cc: frankjaeger added
Milestone: 2.7 release2.6.1
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.