# Hi, not able to work with image in ruby

**URL:** <https://www.ruby-forum.com/t/hi-not-able-to-work-with-image-in-ruby/81735>\
**Category:** Ruby\
**Created:** [January 12, 2007, 6:37am UTC](https://www.ruby-forum.com/t/hi-not-able-to-work-with-image-in-ruby/81735 "2007-01-12T06:37:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maloy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/6de8d8/32.png) [@maloy](https://www.ruby-forum.com/u/maloy)\
**Post date:** [January 12, 2007, 6:37am UTC](https://www.ruby-forum.com/t/hi-not-able-to-work-with-image-in-ruby/81735/1 "2007-01-12T06:37:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![maloy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/6de8d8/32.png) [@maloy](https://www.ruby-forum.com/u/maloy)\
**Post date:** [January 12, 2007, 4:09pm UTC](https://www.ruby-forum.com/t/hi-not-able-to-work-with-image-in-ruby/81735/2 "2007-01-12T16:09:17Z")

</div>

Maloy Debnath wrote:

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

[http://rmagick.rubyforge.org/install-faq.html](http://rmagick.rubyforge.org/install-faq.html)
