0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-04 10:39:43 +08:00
discourse/config/imagemagick
Alan Guo Xiang Tan 6efc5eaca8
FIX: Render topic OG images under ImageMagick policy (#42125)
Previously, topic OG image generation passed an SVG containing data URI
assets to ImageMagick, so the hardened policy denied the ordinary SVG
and DATA coders and returned no preview.

This change materializes assets in an isolated per-render directory,
pre-rasterizes SVG assets, and renders the canvas explicitly through
MSVG with the required MVG coder, restoring previews while keeping
ordinary SVG, DATA, delegates, filters, and restricted paths denied and
omitting invalid assets without failing the full render.
2026-07-30 08:12:33 +08:00
..
policy.xml