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.13.4 doc/ex/resize_to_fill.rb
rmagick-2.13.3 doc/ex/resize_to_fill.rb
rmagick-2.13.3.rc1 doc/ex/resize_to_fill.rb
rmagick-2.13.2 doc/ex/resize_to_fill.rb
rdp-rmagick-0.0.0 doc/ex/resize_to_fill.rb
rmagick-2.13.1 doc/ex/resize_to_fill.rb
rmagick-2.12.2 doc/ex/resize_to_fill.rb
rmagick-2.12.1 doc/ex/resize_to_fill.rb
rmagick-2.12.0 doc/ex/resize_to_fill.rb
rmagick-2.11.1 doc/ex/resize_to_fill.rb
rmagick-2.10.0 doc/ex/resize_to_fill.rb
rmagick-2.11.0 doc/ex/resize_to_fill.rb
rmagick-2.2.2 doc/ex/resize_to_fill.rb
rmagick-2.1.0 doc/ex/resize_to_fill.rb
rmagick-2.2.0 doc/ex/resize_to_fill.rb
rmagick-2.3.0 doc/ex/resize_to_fill.rb
rmagick-2.4.0 doc/ex/resize_to_fill.rb
rmagick-2.5.0 doc/ex/resize_to_fill.rb
rmagick-2.5.1 doc/ex/resize_to_fill.rb
rmagick-2.5.2 doc/ex/resize_to_fill.rb