test/dummy/app/uploader/adminpanel/section_uploader.rb in adminpanel-2.2.5 vs test/dummy/app/uploader/adminpanel/section_uploader.rb in adminpanel-2.3.0
- old
+ new
@@ -1,8 +1,8 @@
module Adminpanel
class SectionUploader < CarrierWave::Uploader::Base
- include CarrierWave::RMagick
+ include CarrierWave::MiniMagick
storage :file
def root
Rails.root.join 'public/'
@@ -40,28 +40,24 @@
# gravity (Magick::GravityType)
# how to position the image
# resize_to_fill(width, height)
#
- # From the RMagick documentation: “Resize the image to fit within the
+ # Resize the image to fit within the
# specified dimensions while retaining the aspect ratio of the original image.
- # If necessary, crop the image in the larger dimension.“
+ # If necessary, crop the image in the larger dimension.
#
- # See even www.imagemagick.org/RMagick/doc/image3.html#resize_to_fill
- #
# width (Integer)
# the width to scale the image to
# height (Integer)
# the height to scale the image to
# resize_to_fit(width, height)
#
- # From the RMagick documentation: “Resize the image to fit within the
+ # Resize the image to fit within the
# specified dimensions while retaining the original aspect ratio. The image
# may be shorter or narrower than specified in the smaller dimension but
- # will not be larger than the specified values.“
- #
- # See even www.imagemagick.org/RMagick/doc/image3.html#resize_to_fit
+ # will not be larger than the specified values.
#
# width (Integer)
# the width to scale the image to
# height (Integer)
# the height to scale the image to