# Imagemagick\_for

**URL:** <https://www.ruby-forum.com/t/imagemagick-for/111440>\
**Category:** Rails\
**Created:** [August 7, 2007, 12:39pm UTC](https://www.ruby-forum.com/t/imagemagick-for/111440 "2007-08-07T12:39:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [August 7, 2007, 12:39pm UTC](https://www.ruby-forum.com/t/imagemagick-for/111440/1 "2007-08-07T12:39:47Z")

</div>

I’m having problems using imagemagick - in my controller i have

imagemagick\_for ‘/data/pictures’, :cache =\> ‘/public/image\_cache’

and in my view i have

\<%= imagemagick\_tag ‘pic32.jpg’, ‘resize(100x100)’ %\>

But the generated html for the above is

![Pic32](http://localhost:3000/newspipe/imagemagick/pic32.jpg?commands=resize%28100x100%29)

(newspipe is my app name)

I’ve tried putting RAILS\_ROOT into the imagemagick\_for path (including  
the cache), but the generated html is the same - it’s as if  
imagemagick\_tag is ignoring the \_for bit in the controller and going to  
some default directory. Can anyone see what i’m doing wrong?

thanks
