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)
Change History (9)
by , 17 years ago
Attachment: | transparent-road.gif added |
---|
comment:1 by , 17 years ago
Cc: | added |
---|
comment:2 by , 17 years ago
I believe I know the solution to this one. Will try asap and report back...
Steve
comment:3 by , 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 , 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)
comment:5 by , 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 , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
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!
without agg