- Load and save image formats supported by devil library including jpg, tga, png, etc...
- New image operations including "alienify", "blur" and "contrast"
Install the gem
In the command line, execute:
gem install imageruby-devil
Example
# is not necessary to make a explicit require of imageruby-devil
require "imageruby"
image = ImageRuby::Image.from_file("input.jpg") # now, jpg files can be loaded
image.color_replace!(Color.black, Color.purple) # use a method of ImageRuby
image.blur(1) # use a method of added by imageruby-devil
image.save("output.png", :png) # save (and load) in png format is now supported
Links:
ImageRuby-devil at github: https://github.com/tario/imageruby-devil
ImageRuby at github: https://github.com/tario/imageruby
ImageRuby-bmp-c: https://github.com/tario/imageruby-bmp-c
Devil image library official site: http://openil.sourceforge.net/