Sha256: 9505ed3e8e4197e46fbf2bf143eae8ae438267b45b90d7ecb19b28bcbd9e4254

Contents?: true

Size: 214 Bytes

Versions: 28

Compression:

Stored size: 214 Bytes

Contents

#!/usr/local/bin/ruby -w
require 'RMagick'

# Demonstrate the crop_resize method

img = Magick::Image.read('images/Flower_Hat.jpg')[0]
thumbnail = img.resize_to_fill(76, 76)
thumbnail.write("resize_to_fill.jpg")


Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
rmagick-2.6.0 doc/ex/resize_to_fill.rb
rmagick-2.7.0 doc/ex/resize_to_fill.rb
rmagick-2.7.1 doc/ex/resize_to_fill.rb
rmagick-2.7.2 doc/ex/resize_to_fill.rb
rmagick-2.8.0 doc/ex/resize_to_fill.rb
rmagick-2.9.0 doc/ex/resize_to_fill.rb
rmagick-2.9.1 doc/ex/resize_to_fill.rb
rmagick-2.9.2 doc/ex/resize_to_fill.rb