Sha256: 5c934c35131b06d0580e06007dacc241670128622cbb6ccbc9665c5e56b5a540

Contents?: true

Size: 210 Bytes

Versions: 27

Compression:

Stored size: 210 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.crop_resized(76, 76)
thumbnail.write("crop_resized.jpg")


Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
rmagick-1.10.1 doc/ex/crop_resized.rb
rmagick-1.10.0 doc/ex/crop_resized.rb
rmagick-1.11.1 doc/ex/crop_resized.rb
rmagick-1.12.0 doc/ex/crop_resized.rb
rmagick-1.11.0 doc/ex/crop_resized.rb
rmagick-1.13.0 doc/ex/crop_resized.rb
rmagick-1.15.10 doc/ex/crop_resized.rb
rmagick-1.14.0 doc/ex/crop_resized.rb
rmagick-1.14.1 doc/ex/crop_resized.rb
rmagick-1.15.0 doc/ex/crop_resized.rb
rmagick-1.15.1 doc/ex/crop_resized.rb
rmagick-1.15.13 doc/ex/crop_resized.rb
rmagick-1.15.11 doc/ex/crop_resized.rb
rmagick-1.15.12 doc/ex/crop_resized.rb
rmagick-1.15.14 doc/ex/crop_resized.rb
rmagick-1.15.15 doc/ex/crop_resized.rb
rmagick-1.15.16 doc/ex/crop_resized.rb
rmagick-1.15.17 doc/ex/crop_resized.rb
rmagick-1.15.2 doc/ex/crop_resized.rb
rmagick-1.15.3 doc/ex/crop_resized.rb