Permalink
Browse files

Use crop_resized! instead of resize_to_fill!

The latter is unavailable in oooold versions
of RMagick which some old fogeys insist on
continuing to use (I'm looking at you Heroku!)
  • Loading branch information...
1 parent 420ec38 commit 5be22ae387e20cd66a06498c57cc57a2bd56e9a0 @jnicklas jnicklas committed Sep 17, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/carrierwave/processing/rmagick.rb
@@ -195,7 +195,7 @@ def resize_to_fit(width, height)
#
def resize_to_fill(width, height)
manipulate! do |img|
- img.resize_to_fill!(width, height)
+ img.crop_resized!(width, height)
img = yield(img) if block_given?
img
end

0 comments on commit 5be22ae

Please sign in to comment.