0.0
No commit activity in last 3 years
No release in over 3 years
Bridge between ImageRuby and Devil image library
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.1.9.5
 Project Readme
= ImageRuby-Devil - Bridge between ImageRuby and Devil image library

Implements a set of features for ImageRuby using Devil image library (https://github.com/banister/devil)

* Support to load and save formats supported by devil library including jpg, tga, png, etc...

* New image operations: "alienify", "blur", "contrast", "edge_detect", "enboss", "equalize", "flip",
    "gamma_correct", "mirror", "negate", "nosify", "rotate", "sharpen", "to_blob" inherited from
    devil library see devil documentation at http://rdoc.info/github/banister/devil/master/Devil/Image

NOTE: imageruby-devil requires imageruby-bmp or imageruby-bmp-c gems in order to to work

== Installation

=== Gem installation

sudo gem install imageruby-devil

== Usage

No explicit require is needed, examples

=== Example 1: PNG

  require "imageruby"

  include ImageRuby

  # create image (red gradient and random green)
  image = Image.new(255,255) {|x,y| Color.from_rgb(x,rand(200),0) }

  # save image on png format
  image.save("image.png", :png)

=== Example 2: Blur and mirror

  require "imageruby"

  include ImageRuby

  # load image generated in the previous example
  image = Image.from_file("image.png")

  # apply blur effect
  image = image.blur(10)

  # mirror image
  image = image.mirror

  # save image on png format
  image.save("image2.png", :png)


== Copying

Copyright (c) 2011 Dario Seminara, released under the GPL License (see LICENSE)