If you plan on allowing users to upload images to your Rails site, you’re probably using Rick Olson’s attachement_fu plugin. You’ve also probably come across Mike Clark’s File Upload Fu tutorial.
Step one of Mike’s tutorial requires you to install an image processing library. ImageScience is simple and does the trick. To save you some time, follow my steps to get things installed and running quickly on Mac OS X.
- Install MacPorts. I’d recommend just downloading the “dmg” disk image and running the installer.
- Install FreeImage:
sudo port install freeimage - Install the RubyInline gem:
sudo gem install RubyInline - Install ImageScience:
sudo gem install image_science
That should get you through step one of Mike’s tutorial in no time.
5 Comments
Leonardo
—
Congratulations man! Thank you very much
Atif Aslam
—
Thanks Dear, Its GreaT Help
Darrin
—
I was getting this error on OS X and installing the RubyInline gem fixed it. Thanks!
Problems loading ImageScienceProcessor: no such file to load — inline
Josh P
—
Small addition: after installing MacPorts, quit and open terminal if you have it installed.
Thanks for the help here!
Josh
Josh P
—
^^
I meant “running” not “installed”