Skip to content
Browse files

Replaces crop_resized.rb

  • Loading branch information...
1 parent e70f272 commit 0007f66016f8ddc567b2fae173cd658a9e5f8dfc rmagick committed Jan 3, 2008
Showing with 10 additions and 0 deletions.
  1. +10 −0 doc/ex/resize_to_fill.rb
View
10 doc/ex/resize_to_fill.rb
@@ -0,0 +1,10 @@
+#!/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")
+
+

0 comments on commit 0007f66

Please sign in to comment.
Something went wrong with that request. Please try again.