Sha256: 9362530fffae4e719ab3ba326abd3eb3ca8c1633da8bedd0ac2944ed1208e571
Contents?: true
Size: 390 Bytes
Versions: 21
Compression:
Stored size: 390 Bytes
Contents
#! /usr/local/bin/ruby -w require 'RMagick' # Demonstrate the Image#transpose method img = Magick::Image.read('images/Flower_Hat.jpg').first begin img = img.transpose rescue NotImplementedError not_implemented = Magick::Image.read("images/notimplemented.gif").first not_implemented.resize!(img.columns, img.rows) img = not_implemented end img.write('transpose.jpg') exit
Version data entries
21 entries across 21 versions & 1 rubygems