Image_processing or rmagick

2022-02-27 ruby

I am thinking of which gem I should use? (mainly just for resizing images)

Rmagick still looks active. However, ImageProcessing is becoming popular.

require "image_processing/mini_magick"

require "image_processing/mini_magick"
ImageProcessing::MiniMagick
  .source(file)
  .resize_to_limit(800,800)
  .call(destination: file))