MapServer / MapServer-import

3 stars 2 forks source link

Layer Transparency not working with AGG #2114

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: jmckenna Date: 2007/06/06 - 16:50 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

tbonfort commented 12 years ago

Author: sdlime Date: 2007/06/25 - 18:27 I believe I know the solution to this one. Will try asap and report back...

Steve

tbonfort commented 12 years ago

Author: sdlime Date: 2007/07/06 - 09:27 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

tbonfort commented 12 years ago

Author: jmckenna Date: 2007/07/17 - 15:51 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)

tbonfort commented 12 years ago

Author: sdlime Date: 2007/07/17 - 22:46 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

tbonfort commented 12 years ago

Author: jmckenna Date: 2007/07/18 - 17:07 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!