Skip to content

Commit 76d4c6b

Browse files
dadachiclaude
andauthored
Upgrade image_processing to 2.0 (#80)
image_processing 2.0 makes mini_magick/ruby-vips soft dependencies, so they no longer come transitively. Add ruby-vips explicitly (Active Storage's default variant processor); mini_magick is dropped since the app uses the vips processor. Verified an end-to-end vips resize and the full suite. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent fc9c22a commit 76d4c6b

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

Gemfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ gem "tzinfo-data", platforms: %i[windows jruby]
3333
gem "bootsnap", ">= 1.4.2", require: false
3434

3535
# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
36-
gem "image_processing", "~> 1.12"
36+
gem "image_processing", "~> 2.0"
37+
# image_processing 2.0 makes the image library a soft dependency; ruby-vips
38+
# is Active Storage's default variant processor, so require it explicitly.
39+
gem "ruby-vips"
3740

3841
# Security update
3942
gem "nokogiri", ">= 1.12.5"

Gemfile.lock

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,7 @@ GEM
199199
http-2 (>= 1.1.3)
200200
i18n (1.14.8)
201201
concurrent-ruby (~> 1.0)
202-
image_processing (1.14.0)
203-
mini_magick (>= 4.9.5, < 6)
204-
ruby-vips (>= 2.0.17, < 3)
202+
image_processing (2.0.1)
205203
importmap-rails (2.2.3)
206204
actionpack (>= 6.0.0)
207205
activesupport (>= 6.0.0)
@@ -243,8 +241,6 @@ GEM
243241
turbo-rails
244242
marcel (1.2.1)
245243
matrix (0.4.3)
246-
mini_magick (5.3.1)
247-
logger
248244
mini_mime (1.1.5)
249245
mini_portile2 (2.8.9)
250246
minitest (6.0.6)
@@ -522,7 +518,7 @@ DEPENDENCIES
522518
debug
523519
devise_token_auth (~> 1.2, >= 1.2.6)
524520
erb_lint
525-
image_processing (~> 1.12)
521+
image_processing (~> 2.0)
526522
importmap-rails
527523
jsonapi-serializer
528524
madmin (~> 2.0)
@@ -541,6 +537,7 @@ DEPENDENCIES
541537
rails (~> 8.1)
542538
resend
543539
rubocop-rails-omakase
540+
ruby-vips
544541
seed-fu (~> 2.3)
545542
selenium-webdriver (>= 4.20.1)
546543
solid_cable

0 commit comments

Comments
 (0)