[mapserver-users] Re: Turn off anti-alias Mapserver 6.0

tom Thomas.Joseph at awtwater.com
Fri Apr 13 21:06:26 EDT 2012


 Steve, 

That certainly helps.  What is the difference (if any) between FORMATOPTION
"QUANTIZE_COLORS=256" and the outputformat AGG/PNG8. I am just a little
concerned about the reduced color palette, however it may not be an issue
for us I will just have to do some experimenting.    

I may be mistaken but it seems like in version 5.7 we used to be able get a
24bit PNG with no anti-aliasing and the image size was reasonable.  From my
research it seems that 5.7 used the GD driver by default but GD with
Imagetype PC256 is certainly not rendering the same as 5.7 default.

Tom

 


Stephen Woodbridge wrote
> 
> Tom,
> 
> Try this output definition:
> 
>      OUTPUTFORMAT
>          NAME "agg_qn"
>          DRIVER "AGG/PNG"
>          EXTENSION "png"
>          MIMETYPE "image/png"
>          IMAGEMODE RGB
>          FORMATOPTION "INTERLACE=false"
>          FORMATOPTION "QUANTIZE_NEW=ON"
>          FORMATOPTION "QUANTIZE_FORCE=ON"
>          FORMATOPTION "QUANTIZE_DITHER=OFF"
>          FORMATOPTION "QUANTIZE_COLORS=256"
>          #TRANSPARENT ON
>          #FORMATOPTION "TRANSPARENT=ON"
>      END
> 
> -Steve W
> 
> On 4/12/2012 12:20 AM, Thomas Joseph wrote:
>> We have recently upgraded from Mapserver 5.7 to 6.0 and although the AGG
>> anti-alias lines look great the output image size has increased
>> significantly from the previous rendering without anti-alias. I was just
>> wondering if there is a way to turn off the anti-alias for polyline
>> rendering in Mapserver 6.0. From the documentation it appeared that the
>> previous GD driver did not include anti-alias by default. We have
>> attempted to switch the outputformat from the new default AGG to the
>> previous GD driver using the outputformat directive in the map file as
>> shown below. This changed the image size slightly suggesting that
>> mapserver was using a different driver to render, however the lines were
>> still rendered with anti-alias on and the image was still relatively
>> large compared to previous mapserver verison.
>>
>> OUTPUTFORMAT
>>
>> NAME "GDpng"
>>
>> DRIVER GD/PNG
>>
>> MIMETYPE "image/png"
>>
>> IMAGEMODE RGB
>>
>> EXTENSION "png"
>>
>> END
>>
>> Previously in Mapserver 5.7 we did not specify an outputformat we simply
>> used IMAGETYPE PNG24 and the output was generated without anti-alias.
>> Any suggestions would be greatly appreciated. If you need additional
>> information let me know.
>>
>> tom
>>
>> THIS EMAIL IS CONFIDENTIAL. Its use or disclosure by any person other
>> than the addressee is unauthorised. Anyone other than the intended
>> recipient must not rely on the content of this email or any attachment
>> to it. The sender cannot guarantee that this email or any attachment to
>> it is free of computer viruses or other conditions which may damage or
>> interfere with other computer systems.
>>
>>
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at .osgeo
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at .osgeo
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Turn-off-anti-alias-Mapserver-6-0-tp4842613p4880402.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list