[mapserver-users] RGBA transparent images?

Wim Vanbelle wimvanbelle at gmail.com
Wed Aug 25 07:23:40 EDT 2010


Erm, pick interlace=false instead. That was just a test and I forgot to put
that back

On 25 August 2010 13:22, Wim Vanbelle <wimvanbelle at gmail.com> wrote:

> Hi Steve,
>
> I have this in my file:
>
>         OUTPUTFORMAT
>                 NAME "AGGPNG"
>
>                 DRIVER "AGG/PNG"
>                 EXTENSION "png"
>                 MIMETYPE "image/png;mode=24bit;"
>                 IMAGEMODE RGBA
>                 FORMATOPTION "INTERLACE=true"
>
>                 FORMATOPTION "QUANTIZE_NEW=ON"
>                 FORMATOPTION "QUANTIZE_FORCE=ON"
>                 FORMATOPTION "QUANTIZE_DITHER=ON"
>                 FORMATOPTION "QUANTIZE_COLORS=256"
>         END
>
> And in my layer, if you want opacity:
>
>                 OPACITY 60
>
>
> That should render nice lines :).
>
>
>
>
>
>
> On 24 August 2010 21:16, Stephen Woodbridge <woodbri at swoodbridge.com>wrote:
>
>> If I want to generate RGBA transparent images using AGG, what should my
>> OUTPUTFORMAT block look like?
>>
>>
>> I was using this one for 8-bit images, but the anti aliasing was creating
>> blackish artifacts along the rendered lines. Is there a way to avoid them?
>>
>>  OUTPUTFORMAT
>>    NAME "agg_qn"
>>    DRIVER "AGG/PNG"
>>    EXTENSION "png"
>>    MIMETYPE "image/png"
>>    IMAGEMODE RGBA
>>    TRANSPARENT ON
>>    FORMATOPTION "INTERLACE=false"
>>    FORMATOPTION "QUANTIZE_NEW=ON"
>>    FORMATOPTION "QUANTIZE_FORCE=ON"
>>    FORMATOPTION "QUANTIZE_DITHER=OFF"
>>    FORMATOPTION "QUANTIZE_COLORS=37"
>>    FORMATOPTION "TRANSPARENT=ON"
>>  END
>>
>> Trying 32bit RGBA:
>>
>>  IMAGECOLOR 0 0 0
>>
>>  OUTPUTFORMAT
>>    NAME "agg_qn"
>>    DRIVER "AGG/PNG"
>>    EXTENSION "png"
>>    MIMETYPE "image/png"
>>    IMAGEMODE RGBA
>>    TRANSPARENT ON
>>    FORMATOPTION "TRANSPARENT=ON"
>>  END
>>
>> Generated black backgrounds and not transparent. Is it as simple as
>> removing the IMAGECOLOR? I didn't try that.
>>
>> -Steve W
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100825/2b066a58/attachment.html


More information about the mapserver-users mailing list