Sha256: 4a38db797d5d842baf8a5d3514c080a879c065b32725fc57009dd195b73bb9b9

Contents?: true

Size: 288 Bytes

Versions: 34

Compression:

Stored size: 288 Bytes

Contents

#! /usr/local/bin/ruby -w

require 'RMagick'
include Magick

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

begin
    sepiatone = img.sepiatone(MaxRGB * 0.8)
rescue NotImplementedError
    sepiatone = Image.read('images/notimplemented.gif').first
end

sepiatone.write('sepiatone.jpg')

Version data entries

34 entries across 34 versions & 1 rubygems

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