def resize_to_limit(new_width, new_height)
      manipulate! do |image|
        image = resize_image(image,new_width,new_height) if new_width < image.width || new_height < image.height
        image
      end
    end
def resize_to_limit(new_width, new_height)
      manipulate! do |image|
        image = resize_image(image,new_width,new_height) if new_width < image.width || new_height < image.height
        image
      end
    end
Resize the image to fit within the specified dimensions while retaining
 the original aspect ratio. Will only resize the image if it is larger than the
 specified dimensions. The resulting image may be shorter or narrower than specified
 in the smaller dimension but will not be larger than the specified values.

 === Parameters

 [width (Integer)] the width to scale the image to
 [height (Integer)] the height to scale the image to