# RMagick: unable to open image \`big-duck.gif': No such file

**URL:** <https://www.ruby-forum.com/t/rmagick-unable-to-open-image-big-duck-gif-no-such-file/91686>\
**Category:** Rails\
**Created:** [April 11, 2007, 3:49pm UTC](https://www.ruby-forum.com/t/rmagick-unable-to-open-image-big-duck-gif-no-such-file/91686 "2007-04-11T15:49:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jazzybuddy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f4b2a3/32.png) [@jazzybuddy](https://www.ruby-forum.com/u/jazzybuddy)\
**Post date:** [April 11, 2007, 3:49pm UTC](https://www.ruby-forum.com/t/rmagick-unable-to-open-image-big-duck-gif-no-such-file/91686/1 "2007-04-11T15:49:34Z")

</div>

Hai,

This is the first time I am trying RMagick.

I have a little problem when trying to create a small and simple  
application involving RMagick.  
I have installed RMagick and also ImageMagick.  
The RMagick I have installed through gem install RMagick.  
and the Imagick I have installed through the downloaded .exe file.

In the rails IDE, the way I have implemented it is

require ‘RMagick’  
include Magick

**_class CaptchaController \< ApplicationController_**

def sample\_testing\_captcha  
cat = ImageList.new(“images/logo.JPEG”)  
end

end

I am getting the error like

**_unable to open image `images/logo.JPEG’: No such file or directory_**

RAILS\_ROOT: ./script/…/config/…  
Application Trace | Framework Trace | Full Trace

c:/ruby/lib/ruby/gems/1.8/gems/rmagick-1.14.1-win32/lib/RMagick.rb:1659:in  
`read' c:/ruby/lib/ruby/gems/1.8/gems/rmagick-1.14.1-win32/lib/RMagick.rb:1659:in`initialize’  
c:/ruby/lib/ruby/gems/1.8/gems/rmagick-1.14.1-win32/lib/RMagick.rb:1658:in  
`each' c:/ruby/lib/ruby/gems/1.8/gems/rmagick-1.14.1-win32/lib/RMagick.rb:1658:in`initialize’  
#{RAILS\_ROOT}/app/controllers/captcha\_controller.rb:8:in `new' #{RAILS_ROOT}/app/controllers/captcha_controller.rb:8:in`sample\_testing\_captcha’  
-e:4:in `load’  
-e:4

I am unable to find where exactly the problem is …

Can some body help me???

THNX in advance

---

<div class="post-metadata">

**Author:** ![jazzybuddy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f4b2a3/32.png) [@jazzybuddy](https://www.ruby-forum.com/u/jazzybuddy)\
**Post date:** [April 11, 2007, 3:55pm UTC](https://www.ruby-forum.com/t/rmagick-unable-to-open-image-big-duck-gif-no-such-file/91686/2 "2007-04-11T15:55:02Z")

</div>

On 4/11/07, Jazzy B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> end  
> Application Trace | Framework Trace | Full Trace  
> #{RAILS\_ROOT}/app/controllers/captcha\_controller.rb:8:in  
> `sample_testing_captcha' -e:4:in `load’  
> -e:4
> 
> I am unable to find where exactly the problem is …
> 
> Can some body help me???
> 
> THNX in advance

cat = ImageList.new(“#{RAILS\_ROOT}/images/logo.JPEG”)

## – gnufied

There was only one Road; that it was like a great river: its springs  
were at every doorstep, and every path was its tributary.  
[http://people.inxsasia.com/~hemant](http://people.inxsasia.com/~hemant)
