Friday, January 13, 2012

mini_magick 3.4

At the end of last year, both mini_magick 3.4 and subexec 0.2.1 are released. Before this release, we had to write different codes for POSIX and for Windows as mentioned in phosphorescence: mini_magick - A better RMagick alternative. Then now, since this release, we can write the same codes both for POSIX and for Windows.
require 'mini_magick'
image = MiniMagick::Image.open("http://www.google.com/images/logos/logo.png")
image.resize "50%"
image.format :gif
image.write "localcopy.gif"

No comments:

Post a Comment