Resize Images with Active Storage in Rails

Posted on

Active Storage is built into Ruby on Rails and is a fantastic way to resize images. In this episode we’ll go through how to set it up and how to resize images on the fly.

Active Storage Overview: https://edgeguides.rubyonrails.org/active_storage_overview.html#transforming-images

active_storage/variant.rb: https://github.com/rails/rails/blob/master/activestorage/app/models/active_storage/variant.rb

ImageProcessing::MiniMagick Documentation: https://github.com/janko/image_processing/blob/master/doc/minimagick.md

Episode Source Code: https://github.com/MikeRogers0-YouTube/ActiveStorage-Image-Resizing

Dev.to Write up: https://dev.to/mikerogers0/resize-images-with-active-storage-in-rails-481n