# ImageMagick, passenger, rails, attachement\_fu doesn't resize

**URL:** <https://www.ruby-forum.com/t/imagemagick-passenger-rails-attachement-fu-doesnt-resize/191071>\
**Category:** Rails\
**Created:** [July 4, 2010, 10:45am UTC](https://www.ruby-forum.com/t/imagemagick-passenger-rails-attachement-fu-doesnt-resize/191071 "2010-07-04T10:45:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![heldopslippers](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b9bd4f/32.png) [@heldopslippers](https://www.ruby-forum.com/u/heldopslippers)\
**Post date:** [July 4, 2010, 10:45am UTC](https://www.ruby-forum.com/t/imagemagick-passenger-rails-attachement-fu-doesnt-resize/191071/1 "2010-07-04T10:45:30Z")

</div>

Hi guys!

So after a couple of months of development today I am finaly deploying!  
(WOOHOO great day).  
But i am stuck with a problem I can’t seem to fix:

First of all in development all is working perfectly.  
In deployment on my server it isn’t though!. I use attachment\_fu and i  
am able to upload  
pictures but the pictures are not resizing.

There is nothing in the production log or in de apache error log.  
I am using ImageMagick with Mini\_magick, Passenger and Attachement\_fu.  
So I can upload (no problem) but for some reason the images don’t  
resize! like i told attachement fu to do.

Also i read and Google my ass and found some thing about Apache export  
you need to add or something. But so far i don’t know what to do at this  
point!

Thanxs in advance for any advise!

---

<div class="post-metadata">

**Author:** ![heldopslippers](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b9bd4f/32.png) [@heldopslippers](https://www.ruby-forum.com/u/heldopslippers)\
**Post date:** [July 4, 2010, 10:47am UTC](https://www.ruby-forum.com/t/imagemagick-passenger-rails-attachement-fu-doesnt-resize/191071/2 "2010-07-04T10:47:28Z")

</div>

of course i meant:

“I googled my ass of” not that i am googling my ass of course 😉

---

<div class="post-metadata">

**Author:** ![heldopslippers](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b9bd4f/32.png) [@heldopslippers](https://www.ruby-forum.com/u/heldopslippers)\
**Post date:** [July 4, 2010, 11:31am UTC](https://www.ruby-forum.com/t/imagemagick-passenger-rails-attachement-fu-doesnt-resize/191071/3 "2010-07-04T11:31:20Z")

</div>

hey Peter,

Thanxs for the reply! (Much appreciated! ) !..  
so I google a command (i used convert) and first with root i did:

- convert nl.png nl.gif (just choose a picture on my server)  
this worked  
then i did it with my git user (who is owner of all the files and  
directories):  
and this work also great, no problem at all.

I know passenger has the right permissions because i deploy with  
capistrano and I set in my deploy file:  
run “chown -R git /mnt/app” (where the my app with all it’s releases is  
located)  
also ls -la confirms that git is the user in all directories.

But i don’t understand what you are saying here…  
“- ImageMagick command line utils being in the unix PATH (“which  
convert” on Linux/MacOS X should give you a valid path)”

---

<div class="post-metadata">

**Author:** ![heldopslippers](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b9bd4f/32.png) [@heldopslippers](https://www.ruby-forum.com/u/heldopslippers)\
**Post date:** [July 4, 2010, 1:49pm UTC](https://www.ruby-forum.com/t/imagemagick-passenger-rails-attachement-fu-doesnt-resize/191071/4 "2010-07-04T13:49:55Z")

</div>

On 04 Jul 2010, at 11:31, jeljer te Wies wrote:

> run “chown -R git /mnt/app” (where the my app with all it’s releases  
> is  
> located)  
> also ls -la confirms that git is the user in all directories.
> 
> But i don’t understand what you are saying here…  
> “- ImageMagick command line utils being in the unix PATH (“which  
> convert” on Linux/MacOS X should give you a valid path)”

Apparently that’s ok too, since you wouldn’t be able to do “convert  
blahblahblah” unless convert is actually in the unix path. Out of  
ideas at the moment, if something springs to mind, I’ll let you know.

Best regards

Peter De Berdt

---

<div class="post-metadata">

**Author:** ![heldopslippers](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b9bd4f/32.png) [@heldopslippers](https://www.ruby-forum.com/u/heldopslippers)\
**Post date:** [July 4, 2010, 11:21am UTC](https://www.ruby-forum.com/t/imagemagick-passenger-rails-attachement-fu-doesnt-resize/191071/5 "2010-07-04T11:21:52Z")

</div>

On 04 Jul 2010, at 10:45, jeljer te Wies wrote:

> There is nothing in the production log or in de apache error log.  
> I am using ImageMagick with Mini\_magick, Passenger and Attachement\_fu.  
> So I can upload (no problem) but for some reason the images don’t  
> resize! like i told attachement fu to do.
> 
> Also i read and Google my ass and found some thing about Apache export  
> you need to add or something. But so far i don’t know what to do at  
> this  
> point!

The symptoms are those of attachment\_fu not being able to run the  
ImageMagick “convert” command properly.

Check the following on your deployment server:

- ImageMagick working correctly from the command line (google for a  
command line example and use it on an image file)
- ImageMagick command line utils being in the unix PATH (“which  
convert” on Linux/MacOS X should give you a valid path)
- Appropriate permissions on the folders where attachment\_fu does its  
thing

Best regards

Peter De Berdt
