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

# Demonstrate the Image#frame method

img = Magick::Image.read('images/Flower_Hat.jpg').first

img.matte_color="gray75"
img = img.frame

img.write('frame.jpg')
exit
