# Hel using paperclip + imagemagick

**URL:** <https://www.ruby-forum.com/t/hel-using-paperclip-imagemagick/157418>\
**Category:** Rails\
**Created:** [January 11, 2009, 1:17am UTC](https://www.ruby-forum.com/t/hel-using-paperclip-imagemagick/157418 "2009-01-11T01:17:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [January 11, 2009, 1:17am UTC](https://www.ruby-forum.com/t/hel-using-paperclip-imagemagick/157418/1 "2009-01-11T01:17:16Z")

</div>

I use paperclip to upload images and works great, but I am unable to  
resize them with imagemagick. All my photos are in system/public/photos  
and then in /11/original or 12/originial, for example. It is suppossed  
to be created a 11/small or 12/small directory, but it is nowhere. In my  
controller I have:

imagemagick\_for “#{RAILS\_ROOT}/public/system/photos”

I will appreciate any help

---

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [January 11, 2009, 1:37am UTC](https://www.ruby-forum.com/t/hel-using-paperclip-imagemagick/157418/2 "2009-01-11T01:37:56Z")

</div>

I get this when I try to open the img in another window:  
Image could not be processed. You have a nil object when you didn’t  
expect it! You might have expected an instance of ActiveRecord::Base.  
The error occurred while evaluating nil.[]
