Skip to Content

Rails - Create another version from existed version image in Carriwerwave

Posted on

Carrierwave has an option, which allows us to create a new version from a processed version with key word: from_version

version :optimized do
  process :pngquant
  process :optimize
  process :store_geometry
end

version :large, from_version: :optimized do
  process resize_to_limit: [1400, 1400]
  process :store_geometry
end
comments powered by Disqus