From 642cfc4b597bc9358e84fbf1ef4fdd7358aa7890 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 15 Mar 2026 10:32:51 +0000 Subject: [PATCH] Use patched image_optim so svgo configuration works Fixes #6892 --- Gemfile | 1 + Gemfile.lock | 19 +++++++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/Gemfile b/Gemfile index 8db341073..1c330ebed 100644 --- a/Gemfile +++ b/Gemfile @@ -36,6 +36,7 @@ gem "rtlcss" gem "autoprefixer-rails" # Use image_optim to optimise images +gem "image_optim", :github => "tomhughes/image_optim", :ref => "svgo-config" gem "image_optim_rails" # Use argon2 for password hashing diff --git a/Gemfile.lock b/Gemfile.lock index 6ff8f28e2..e83094b3d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -14,6 +14,18 @@ GIT gd2-ffij (0.4.1.dev) ffi (>= 1.0.0) +GIT + remote: https://github.com/tomhughes/image_optim.git + revision: 3ae8ac42f1c4d6a2da88bc218ca6e6b0a438551b + ref: svgo-config + specs: + image_optim (0.31.4) + exifr (~> 1.2, >= 1.2.2) + fspath (~> 3.0) + image_size (>= 1.5, < 4) + in_threads (~> 1.3) + progress (~> 3.0, >= 3.0.1) + GEM remote: https://rubygems.org/ specs: @@ -349,12 +361,6 @@ GEM rainbow (>= 2.2.2, < 4.0) ruby-progressbar (~> 1.8, >= 1.8.1) terminal-table (>= 1.5.1) - image_optim (0.31.4) - exifr (~> 1.2, >= 1.2.2) - fspath (~> 3.0) - image_size (>= 1.5, < 4) - in_threads (~> 1.3) - progress (~> 3.0, >= 3.0.1) image_optim_rails (0.5.0) image_optim (~> 0.24) railties @@ -961,6 +967,7 @@ DEPENDENCIES http_accept_language (~> 2.1.1) i18n-js (~> 4.2.3) i18n-tasks + image_optim! image_optim_rails image_processing inline_svg -- 2.39.5