A man who knows a lot about Ruby on Windows is Luis Lavena and a day after I posted he very kindly took the time to compile a Windows version of the ImageScience gem and instantly transformed 30 minutes of hard work into about 30 seconds of simplicity!
If you really like doing things the hard way then feel free to read my original post and try compiling everything for yourself, but if all you really want is to get up and running as quickly and painlessly as possible then here are the new ‘easy’ instructions (note: I’m assuming that you have Ruby installed and working in C:\Program Files\Ruby):
-
Install RubyInline
Open a command prompt window and run:
gem install --include-dependencies RubyInline
At the time of writing this will install RubyInline version 3.6.6.
-
Download and install FreeImage
Download the FreeImage binary (at the time of writing version 3.10.0) and unzip to your desktop. Copy FreeImage.dll from the dist directory to C:\Windows\system32.
-
Download and install the Win32 ImageScience gem
Download the Win32 ImageScience gem (at the time of writing version 1.1.3) and copy it to C:\Program Files\Ruby.
Install the gem from a command prompt window using:
gem install "C:\Program Files\Ruby\image_science-1.1.3-i386-mswin32.gem"
You can then delete the gem file from C:\Program Files\Ruby.
-
Test ImageScience
Open a command prompt window, type irb to start a Ruby console and type:
require 'rubygems' require 'image_science'After the second
requireYou should see => true as the result: if you get an error then check that you copied the FreeImage DLL to the correct location in step 3.
And that’s it you’re done!


27 comments
Comment on ImageScience on Windows without the pain by Pedro
February 23rd, 2008 @ 13:27 – permalink
Comment on ImageScience on Windows without the pain by Richard
March 4th, 2008 @ 21:59 – permalink
Comment on ImageScience on Windows without the pain by Rob
March 5th, 2008 @ 08:52 – permalink
Comment on ImageScience on Windows without the pain by Rafael Mueller
March 7th, 2008 @ 15:16 – permalink
Comment on ImageScience on Windows without the pain by Abhik
April 1st, 2008 @ 06:26 – permalink
Comment on ImageScience on Windows without the pain by Mike Costa
April 2nd, 2008 @ 10:59 – permalink
Comment on ImageScience on Windows without the pain by Max RB
May 15th, 2008 @ 01:26 – permalink
Comment on ImageScience on Windows without the pain by Maarten
May 20th, 2008 @ 13:44 – permalink
Comment on ImageScience on Windows without the pain by Antony
May 22nd, 2008 @ 06:46 – permalink
Comment on ImageScience on Windows without the pain by rdogg
June 7th, 2008 @ 00:43 – permalink
Comment on ImageScience on Windows without the pain by Jason Black
July 7th, 2008 @ 22:40 – permalink
Comment on ImageScience on Windows without the pain by Barry
August 4th, 2008 @ 14:14 – permalink
Comment on ImageScience on Windows without the pain by milton
August 6th, 2008 @ 10:02 – permalink
Comment on ImageScience on Windows without the pain by Manjula
August 13th, 2008 @ 10:08 – permalink
Comment on ImageScience on Windows without the pain by Rob Anderton
August 15th, 2008 @ 09:53 – permalink
Comment on ImageScience on Windows without the pain by Sunil
August 24th, 2008 @ 01:17 – permalink
Comment on ImageScience on Windows without the pain by Sunil
August 24th, 2008 @ 04:39 – permalink
Comment on ImageScience on Windows without the pain by Rob Anderton
August 24th, 2008 @ 17:30 – permalink
Comment on ImageScience on Windows without the pain by Sunil
August 25th, 2008 @ 08:15 – permalink
Comment on ImageScience on Windows without the pain by iioiooioo
November 7th, 2008 @ 04:32 – permalink
Comment on ImageScience on Windows without the pain by asbrown
January 7th, 2009 @ 22:06 – permalink
Comment on ImageScience on Windows without the pain by John Clancy
January 26th, 2009 @ 22:44 – permalink
Comment on ImageScience on Windows without the pain by iioiooioo
February 18th, 2009 @ 03:00 – permalink
Comment on ImageScience on Windows without the pain by RashOnRails
April 8th, 2009 @ 20:33 – permalink
Comment on ImageScience on Windows without the pain by Rob Anderton
April 10th, 2009 @ 12:08 – permalink
Comment on ImageScience on Windows without the pain by Darek Rusin
May 8th, 2009 @ 18:30 – permalink
Comment on ImageScience on Windows without the pain by Daria
June 4th, 2009 @ 16:12 – permalink
Leave a reply
You can use Markdown in your comment as well as plain HTML. You can use
<filter:jscode lang="ruby">and</filter:jscode>tags to surround code blocks (supported languages are css, html, javascript and ruby). Your email address will not be published.If your comment doesn’t appear immediately after posting it could have been marked as spam. Don’t worry: we regularly check for and approve incorrectly filtered comments so you shouldn’t have to wait too long for it to be shown.