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!)
This commit is contained in:
parent
420ec38bef
commit
5be22ae387
|
@ -195,7 +195,7 @@ module CarrierWave
|
|||
#
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue