[openstreetmap/openstreetmap-website] Modernise svgo configuration so that it works (PR #6894)
Tom Hughes
notifications at github.com
Sun Mar 15 10:38:20 UTC 2026
So svgo 2.x changed how things are configured, which [broke image_optim](https://github.com/toy/image_optim/issues/191) and it's default behaviour if an optimisation command errors is to ignore it and use the unoptimised image.
I can work on an upstream fix, though things aren't very active there, but this is a workaround. Sadly it does require putting an svgo configuration file in the root directory.
This fixes #6892.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/6894
-- Commit Summary --
* Modernise svgo configuration so that it works
-- File Changes --
M config/image_optim.yml (2)
A svgo.config.mjs (13)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/6894.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6894.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6894
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6894 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260315/e7ff2e62/attachment-0001.htm>
More information about the rails-dev
mailing list