Opened 17 years ago

Closed 17 years ago

#2114 closed defect (fixed)

Layer Transparency not working with AGG

Reported by: jmckenna Owned by: sdlime
Priority: normal Milestone: 5.0 release
Component: AGG Version: 5.0
Severity: normal Keywords:
Cc: dgadoury@…, yassefa@…

Description

With AGG outputformat and TRANSPARENCY set in the LAYER, that layer is not drawn properly in the output image.

... OUTPUTFORMAT

NAME "agg/png24" MIMETYPE "image/png; mode=24bit" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE "RGB" FORMATOPTION "PALETTE_FORCE=TRUE" FORMATOPTION "PALETTE=/my/path/palette.txt"

END ... LAYER

... TRANSPARENCY 50 ...

END

Attachments (3)

transparent-road.gif (22.9 KB ) - added by jmckenna 17 years ago.
without agg
agg.gif (36.1 KB ) - added by jmckenna 17 years ago.
with agg
agg-0717.gif (34.2 KB ) - added by jmckenna 17 years ago.
transparent layer, showing puke-green color

Download all attachments as: .zip

Change History (9)

by jmckenna, 17 years ago

Attachment: transparent-road.gif added

without agg

by jmckenna, 17 years ago

Attachment: agg.gif added

with agg

comment:1 by jmckenna, 17 years ago

Cc: yassefa@… added

comment:2 by sdlime, 17 years ago

I believe I know the solution to this one. Will try asap and report back...

Steve

comment:3 by sdlime, 17 years ago

I committed a fix for this one tonite. Works better for AGG than for GD because of the subpixel anti-aliasing. Please try and comment...

Steve

comment:4 by jmckenna, 17 years ago

I just tried with today's build: layer transparency seems to work now with AGG, however the color seems to be off (it comes out as a puke-green instead of a light yellow), is this acceptable? (attaching screengrab)

by jmckenna, 17 years ago

Attachment: agg-0717.gif added

transparent layer, showing puke-green color

comment:5 by sdlime, 17 years ago

My blending function may have issues (swapped green and blue for example). What are the RGB values and opacities for the 3 roads layers in your sample?

Steve

comment:6 by jmckenna, 17 years ago

Resolution: fixed
Status: newclosed

Sorry Steve, please ignore my last comment (there was a darker "casement" layer beneath this one, causing the transparent color to appear darker). It works as expected.

Thanks for the fix!

Note: See TracTickets for help on using tickets.