Description: Since the installation of MapServer version 8.6.0, SVG symbol processing no longer yields the expected results when rasterized.
Observed Behavior:
- The anomaly is visible during rendering via OpenLayers and when exporting to image formats (JPEG).
- Interestingly, when the map is exported to PDF format, the symbols are processed correctly.
- It appears that the symbol is not being resized correctly during the rasterization process.
Environment & Versioning: Tests were performed on the same machine (Ubuntu 24.04) using compiled versions of MapServer. Rolling back to version 8.4.1 restores the expected behavior.
Output of mapserv -v:
- Version 8.4.1 (Working): MapServer version 8.4.1 PROJ version 9.4 GDAL version 3.11 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=OGCAPI_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE INPUT=FLATGEOBUF
- Version 8.6.0 (Buggy): MapServer version 8.6.0 PROJ version 9.4 GDAL version 3.11 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=OGCAPI_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE INPUT=FLATGEOBUF
Mapfile Class:
CLASS
NAME ""
MAXSCALEDENOM 8000
MINSCALEDENOM 10
STYLE
SIZE 28
SYMBOL "E07D9565-7FB7-48D5-9778-BB05F6E3B185_arch_industrie.svg"
END # STYLE
END # CLASS
SVG Header: The first line of the SVG used is:
<svg role="img" width="14" height="14" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 14 14">
Attachments: Please find screenshots showing the difference between the expected and current rendering below:
OpenLayers preview :
Version 8.6.0

Version 8.4.1

PDF export :
Version 8.6.0

Version 8.4.1

JPEG export :
Version 8.6.0

Version 8.4.1

Description: Since the installation of MapServer version 8.6.0, SVG symbol processing no longer yields the expected results when rasterized.
Observed Behavior:
Environment & Versioning: Tests were performed on the same machine (Ubuntu 24.04) using compiled versions of MapServer. Rolling back to version 8.4.1 restores the expected behavior.
Output of mapserv -v:
Mapfile Class:
CLASS
NAME ""
MAXSCALEDENOM 8000
MINSCALEDENOM 10
STYLE
SIZE 28
SYMBOL "E07D9565-7FB7-48D5-9778-BB05F6E3B185_arch_industrie.svg"
END # STYLE
END # CLASS
SVG Header: The first line of the SVG used is:
<svg role="img" width="14" height="14" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 14 14">Attachments: Please find screenshots showing the difference between the expected and current rendering below:
OpenLayers preview :


Version 8.6.0
Version 8.4.1
PDF export :


Version 8.6.0
Version 8.4.1
JPEG export :


Version 8.6.0
Version 8.4.1