diff --git a/History.txt b/History.txt index c4f3ecb43..d9b0cdde0 100644 --- a/History.txt +++ b/History.txt @@ -3,8 +3,7 @@ * [changed] Major changes to the ImageScience module, it actually works now! * [removed] Support for Sequel < 2.12 - - +* [removed] `crop_resized` and `resize` aliases in RMagick, use `resize_to_fill` and `resize_to_fit` respectively === Version 0.4.0 2009-10-12 diff --git a/README.rdoc b/README.rdoc index 569a2ffa0..f4142f9f1 100644 --- a/README.rdoc +++ b/README.rdoc @@ -128,7 +128,7 @@ example is image thumbnails. There is built in support for this: process :resize => [800, 800] version :thumb do - process :crop_resized => [200,200] + process :resize_to_fill => [200,200] end end @@ -271,14 +271,14 @@ include it in your Uploader: end The RMagick module gives you a few methods, like -+CarrierWave::RMagick#crop_resized+ which manipulate the image file in some way. -You can set a +process+ callback, which will call that method any time a file is -uploaded. ++CarrierWave::RMagick#resize_to_fill+ which manipulate the image file in some +way. You can set a +process+ callback, which will call that method any time a +file is uploaded. class AvatarUploader < CarrierWave::Uploader::Base include CarrierWave::RMagick - process :crop_resized => [200, 200] + process :resize_to_fill => [200, 200] process :convert => 'png' def filename @@ -296,7 +296,7 @@ ImageScience works the same way as RMagick. class AvatarUploader < CarrierWave::Uploader::Base include CarrierWave::ImageScience - process :crop_resized => [200, 200] + process :resize_to_fill => [200, 200] end == Migrating diff --git a/lib/carrierwave/processing/rmagick.rb b/lib/carrierwave/processing/rmagick.rb index ee2197848..e40e6c837 100644 --- a/lib/carrierwave/processing/rmagick.rb +++ b/lib/carrierwave/processing/rmagick.rb @@ -177,8 +177,6 @@ def resize_to_fit(width, height) end end - alias_method :resize, :resize_to_fit - ## # From the RMagick documentation: "Resize the image to fit within the # specified dimensions while retaining the aspect ratio of the original @@ -203,8 +201,6 @@ def resize_to_fill(width, height) end end - alias_method :crop_resized, :resize_to_fill - ## # Resize the image to fit within the specified dimensions while retaining # the original aspect ratio. If necessary, will pad the remaining area