Tuesday, 19 April 2011

RMagick Installation And Usage

You might have heard of imagemagick libarary : the popular library that does almost all operation on image one can think of.
I'm a die hard fan of image magick library. and probably that's why no matter which language i choose to program i always opt imagemagick wrapper functions  for eg. Imagick for php, Magick++ for c++ and RMagick for Rails.

RMagick Installation :

$ gem install RMagck 2  # if Rails < 2 , install RMagick 1 else for Rails  3 install RMagick 2.x

confirm
$ gem list  # if you see RMagick in your list then it's installed in rubygems.


Rmagick installation on Windows

1) Go and download  rmagick for windows (win32)
Project page:
http://rubyforge.org/frs/?group_id=12&release_id=39888

Download here (RMagick-2.12.0-ImageMagick-6.5.6-8-Q8.zip)

2) Extract and CD to unzipped directory

3) Install it

gem update --system


You should see:
  • Successfully installed rmagick-2.12.0-x86-mswin32
If instead you get the message
  • Error installing gem rmagick[.gem]: buffer error
then you didn't update RubyGems. Do so now and re-run the gem install command.





No comments:

Post a Comment