# File lib/dragonfly/image_magick/processor.rb, line 63 def resize_and_crop(temp_object, opts={}) opts = Dragonfly::Utils.symbolize_keys(opts) if !opts[:width] && !opts[:height] return temp_object elsif !opts[:width] || !opts[:height] attrs = identify(temp_object) opts[:width] ||= attrs[:width] opts[:height] ||= attrs[:height] end opts[:gravity] ||= 'c' opts[:resize] = "#{opts[:width]}x#{opts[:height]}^^" crop(temp_object, opts) end