lib/image_processing/mini_magick.rb
# Crops the image with the specified crop points.
Crops the image with the specified crop points.
Crops the image with the specified crop points .
def crop(*args)
        case args.count
        when 1 then magick.crop(*args)
        when 4 then magick.crop("#{args[2]}x#{args[3]}+#{args[0]}+#{args[1]}")
        else fail ArgumentError, "wrong number of arguments (expected 1 or 4, got #{args.count})"
        end
      end
def crop ( * args ) case args . count when 1 then magick . crop ( * args ) when 4 then magick . crop ( "#{args[2]}x#{args[3]}+#{args[0]}+#{args[1]}" ) else fail ArgumentError , "wrong number of arguments (expected 1 or 4, got #{args.count})" end end
Crops the image with the specified crop points.
Crops the image with the specified crop points .
args