0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-04 10:39:43 +08:00
discourse/docs
Alan Guo Xiang Tan a8e4746b51
FEATURE: Use libvips for low-risk image operations
Letter avatars, dominant-color extraction, and generated topic OG images use ImageMagick today. These straightforward operations keep ImageMagick in the request and background-job paths while the wider image-processing migration remains behind a site setting.

This commit moves the three operations to the stock libvips CLI. It permits untrusted libvips access only for explicit SVG loads, converts each OG asset through its expected loader, rejects unsafe SVG features and media-type mismatches, and bounds SVG asset rendering. Dominant-color extraction verifies the stored format before decoding and caches unsupported pixel layouts as an empty result.

Failures do not fall back to ImageMagick. The companion discourse_docker change removes the unsupported TIFF loader from the libvips build.
2026-08-04 06:19:27 +08:00
..
developer-guides FEATURE: Use libvips for low-risk image operations 2026-08-04 06:19:27 +08:00
ADMIN-QUICK-START-GUIDE.md fix emojis (#34411) 2025-08-19 11:25:20 +02:00
AUTHORS.md
code-of-conduct.md
INSTALL-cloud.md DOCS: Mention updated plan names in INSTALL-cloud.md (#41618) 2026-07-14 16:48:46 +05:30
INSTALL-email.md DOCS: Update Brevo's SMTP config (#38770) 2026-03-24 09:09:07 +01:00
INSTALL.md DOCS: amend documented required PostgreSQL version (#37931) 2026-02-24 17:20:04 +11:00
PLUGINS.md UX: update category references in documentation to match meta changes (#41263) 2026-06-29 11:33:49 -04:00
SECURITY.md
TESTING.md