# Need help with RMagick for attachment\_fu

**URL:** <https://www.ruby-forum.com/t/need-help-with-rmagick-for-attachment-fu/122704>\
**Category:** Rails\
**Created:** [December 11, 2007, 1:21am UTC](https://www.ruby-forum.com/t/need-help-with-rmagick-for-attachment-fu/122704 "2007-12-11T01:21:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisolsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Post date:** [December 11, 2007, 1:21am UTC](https://www.ruby-forum.com/t/need-help-with-rmagick-for-attachment-fu/122704/1 "2007-12-11T01:21:35Z")

</div>

I can’t get attachment\_fu to save the images. I have rmagic and  
imagemagick installed and if I run some of the scripts on this page (  
[http://rmagick.rubyforge.org/portfolio.html](http://rmagick.rubyforge.org/portfolio.html) ) it works as expected.

When I try to save an image file uploaded in a rails project it isn’t  
saved, no folder is created and no messages are logged to give a hint to  
what is wrong.

The last time I set things up and they worked I did so with the  
following ruby script ([http://rubyforge.org/projects/rmagick/](http://rubyforge.org/projects/rmagick/)),  
unfortunately this time I tried installing Rmagick using the first  
terminal commands and had a hard time uninstalling it which then caused  
the later ruby script to fail.

All I want to do is upload and resize image, so I don’t really care  
which library I use (rMagick, ImageScience, etc). So if anyone has a  
foolproof way if setting those up I would love to hear how.

Thanks

---

<div class="post-metadata">

**Author:** ![chrisolsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Post date:** [December 11, 2007, 2:00am UTC](https://www.ruby-forum.com/t/need-help-with-rmagick-for-attachment-fu/122704/2 "2007-12-11T02:00:15Z")

</div>

After installing ImageScience, I get the following message:

CompilationError in MembersController#index

error executing cc -arch ppc -arch i386 -pipe -bundle  
-I/opt/local/include -fno-common -arch ppc -arch i386 -Os -pipe  
-fno-common -I  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0  
-I /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/include -o  
“/Users/chris/.ruby\_inline/Inline\_ImageScience\_aa58.bundle”  
“/Users/chris/.ruby\_inline/Inline\_ImageScience\_aa58.c” -L/opt/local/lib  
-lfreeimage -lstdc++ -flat\_namespace -undefined suppress: 256  
Renamed /Users/chris/.ruby\_inline/Inline\_ImageScience\_aa58.c to  
/Users/chris/.ruby\_inline/Inline\_ImageScience\_aa58.c.bad  
RAILS\_ROOT: /Users/chris/Documents/Projects/Rails/CommunityCMS/trunk

Application Trace | Framework Trace | Full Trace  
/Library/Ruby/Gems/1.8/gems/RubyInline-3.6.5/lib/inline.rb:402:in  
`build' /Library/Ruby/Gems/1.8/gems/RubyInline-3.6.5/lib/inline.rb:679:in`inline’  
/Library/Ruby/Gems/1.8/gems/image\_science-1.1.3/lib/image\_science.rb:84  
app/models/member.rb:7  
app/controllers/members\_controller.rb:12:in `index’  
This error occurred while loading the following files:  
image\_science

---

<div class="post-metadata">

**Author:** ![chrisolsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Post date:** [December 11, 2007, 6:26am UTC](https://www.ruby-forum.com/t/need-help-with-rmagick-for-attachment-fu/122704/3 "2007-12-11T06:26:06Z")

</div>

I was able to get ImageMagick and RMagick setup properly, although  
ImageScience still throws the error.

I would still be interested in ImageScience setup tips, or reasons for  
the error I get, if anyone has them, otherwise I am good.

---

<div class="post-metadata">

**Author:** ![chrisolsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Post date:** [December 11, 2007, 6:41am UTC](https://www.ruby-forum.com/t/need-help-with-rmagick-for-attachment-fu/122704/4 "2007-12-11T06:41:35Z")

</div>

turns out the error was because I forgot to set the multipart = true. 🙂  
ImageScience is now working beautifully.
