0

I have just upgraded from rails 6 to rails 7. Started getting errors on heroku related to vips :

LoadError
Could not open library 'vips.so.42': vips.so.42: cannot open shared object file: No such file or directory. (LoadError)
Could not open library 'libvips.so.42': libvips.so.42: cannot open shared object file: No such file or directory

I am actually handling image processing using Cloudinary, so I thought I do not need any image processing gem or library in my app. Thus I just removed the image_processing gem from my gemfile (the one that is using vips apparently).

I now get a new error :

LoadError ActiveStorage::Representations::RedirectController#show
New Issue
Generating image variants require the image_processing gem. Please add `gem 'image_processing', '~> 1.2'` to your Gemfile. (LoadError)

I dont really understand why I am getting this error, does ActiveStorage actually needs image_processing even though I am using it with cloudinary ?

David Geismar
  • 3,152
  • 6
  • 41
  • 80
  • Using `gem dependency` command on cloudinary, I got the following output: gem dependency cloudinary Gem cloudinary-1.25.0 actionpack (>= 0, development) aws_cf_signer (>= 0) nokogiri (>= 0, development) rails (~> 5.2, development) rake (>= 13.0.1, development) rest-client (>= 2.0.0) rspec (>= 3.5, development) rspec-rails (>= 0, development) rspec-retry (>= 0, development) rubyzip (>= 0, development) simplecov (> 0.18.0, development) sqlite3 (>= 0, development) you'll probably have to hunt down which of these gems requires `vips`. – atcloud Feb 03 '23 at 00:28

0 Answers0