# File lib/dragonfly/image_magick/processor.rb, line 34
      def crop(temp_object, opts={})
        opts = Dragonfly::Utils.symbolize_keys(opts)

        width   = opts[:width]
        height  = opts[:height]
        gravity = GRAVITIES[opts[:gravity]]
        x       = "#{opts[:x] || 0}"
        x = '+' + x unless x[/^[+-]/]
        y       = "#{opts[:y] || 0}"
        y = '+' + y unless y[/^[+-]/]
        repage  = opts[:repage] == false ? '' : '+repage'
        resize  = opts[:resize]

        convert(temp_object, "#{"-resize #{resize} " if resize}#{"-gravity #{gravity} " if gravity}-crop #{width}x#{height}#{x}#{y} #{repage}")
      end