Opened 16 years ago

Closed 16 years ago

#2602 closed defect (fixed)

Background color is incorrect with Transparent PNG and AGG output

Reported by: assefa Owned by: tbonfort
Priority: normal Milestone:
Component: AGG Version: unspecified
Severity: normal Keywords:
Cc: warmerdam

Description

I came across this issue when using a wms client layer in mapserver with the output format set to AGG. The wms client layer returns a transparent PNG. The problem I am seeing is that the final output was a black background (instead of being transparent)

After looking in what was happening, I found that this problem was occurring when the rendering was passing through the msResampleGDALToMap instead of msDrawRasterLayerGDAL.

I have attached a simple map file/data that shows the problem.

Note that the same setting with an output format set to use GD did not have a problem.

Attachments (1)

agg_gd_getlegend.zip (6.3 KB ) - added by assefa 16 years ago.
test data showing the issue

Download all attachments as: .zip

Change History (3)

by assefa, 16 years ago

Attachment: agg_gd_getlegend.zip added

test data showing the issue

comment:1 by assefa, 16 years ago

Cc: warmerdam added
Summary: Background color is incorrdct with Transparent PNG and AGG outputBackground color is incorrect with Transparent PNG and AGG output

Not sure if I should have logged it in the AGG or GDAL support.

comment:2 by tbonfort, 16 years ago

Resolution: fixed
Status: newclosed

Assefa, I'm guessing this is the same problem as #2540 I tried your testcase and got back a transparent image, so I guess r7765 fixed this. Please reopen if you still have the problem

Note: See TracTickets for help on using tickets.