hi, not able to work with image in ruby

M

Maloy Debnath

hi,
I am very new to ruby . My new project is in WATIR(testing tool)
which has ruby as an scripting language . I need to compare two images
so for that i need to read an image from a web page how can i go about
that .I tried the following code


require 'RMagick'
include Magick
im = Image.new('source\picture.jpg')
im.display
exit

but it did not work it says unable to load the file RMagick !!!!

So please let me what to do ...

thank you
maloy
 
T

Timothy Hunter

Maloy said:
hi,
I am very new to ruby . My new project is in WATIR(testing tool)
which has ruby as an scripting language . I need to compare two images
so for that i need to read an image from a web page how can i go about
that .I tried the following code


require 'RMagick'
include Magick
im = Image.new('source\picture.jpg')
im.display
exit

but it did not work it says unable to load the file RMagick !!!!

So please let me what to do ...

thank you
maloy
Did you install RMagick? http://rmagick.rubyforge.org/install-faq.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,736
Latest member
zacharyharris

Latest Threads

Top