Sha256: 8d0a7850a93320d2373353eeae9286e6b57f38e5999657ff17a4af66967d77e6
Contents?: true
Size: 439 Bytes
Versions: 26
Compression:
Stored size: 439 Bytes
Contents
#! /usr/local/bin/ruby -w require 'RMagick' # Demonstrate the Image#vignette method. # Compare this example with the vignette.rb script in the examples directory. img = Magick::Image.read('images/Flower_Hat.jpg').first begin vignette = img.vignette rescue NotImplementedError vignette = Magick::Image.read('images/notimplemented.gif').first vignette.resize!(img.columns, img.rows) end vignette.write('vignette.jpg') exit
Version data entries
26 entries across 26 versions & 1 rubygems