With foss4g things are a bit busy! Antialias mode would indeed be good. For high quality rendering when generating to PDF there was a setting to ask it not to cache and draw each time?
If you can handle the performance hit it is a way generate out nice output also. - - Jody Garnett On Tue, Dec 3, 2024 at 4:51 AM Cécile Vuilleumier < cecile.vuilleum...@camptocamp.com> wrote: > Hi all > > I have been looking into the SLDStyleFactory again after we noticed some > pixelation in GeoServer legend graphics when using an SVG image as point > symbolizer. You can see an example in the attached files with the style as > SLD + the external graphic as SVG and the resulting legend graphic in > legend_0.png (with the following query parameters: > &width=20&height=20&LEGEND_OPTIONS=dpi:364;fontAntiAliasing:true;forceLabels:on). > > Increasing the parameters WIDTH and HEIGHT does not help, as it only adds > padding around the symbol. But we get much better result when using > RenderingHints.VALUE_ANTIALIAS_ON here: > https://github.com/geotools/geotools/blob/80a01af1b6ea405fca6b03fe780b73c0d431890c/modules/library/render/src/main/java/org/geotools/renderer/style/SLDStyleFactory.java#L165 > -> see in the file legend_1.png > > Is there a reason not to use antialiasing here (I know it also impacts the > map rendering) or is there some other way to avoid pixelation? > > Thanks in advance and best regards, > Cécile > > -- > *camptocamp* > > > *Cécile Vuilleumier * > Geospatial developer > www.camptocamp.com > _______________________________________________ > GeoTools-Devel mailing list > GeoTools-Devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-devel >
_______________________________________________ GeoTools-Devel mailing list GeoTools-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel