CrImage::Operation::BilinearResize
Resize an image using a bilinear resizing algorithm.
Taking sample image:
puts image.width, image.height # => 159x199
image.bilinear_resize(40, 50).save("small_sample.jpg")
image.bilinear_resize(200, 250).save("larger_sample.jpg")
Instance methods
bilinear_resize!(width : Int32, height : Int32) : self
Resizes image to new dimensions. Modifies self.