# Need help with image resizing and configuration in rails

**URL:** <https://www.ruby-forum.com/t/need-help-with-image-resizing-and-configuration-in-rails/164604>\
**Category:** Rails\
**Created:** [April 3, 2009, 12:32am UTC](https://www.ruby-forum.com/t/need-help-with-image-resizing-and-configuration-in-rails/164604 "2009-04-03T00:32:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gomix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/858c86/32.png) [@gomix](https://www.ruby-forum.com/u/gomix)\
**Post date:** [April 3, 2009, 12:32am UTC](https://www.ruby-forum.com/t/need-help-with-image-resizing-and-configuration-in-rails/164604/1 "2009-04-03T00:32:27Z")

</div>

Hello,

I’m trying to finish a Ruby on Rails proyect for a client and I just  
need someone to help me out with implementing a resizing function with  
RMagic. I’m offering to pay a modest price according to the time  
invloved in the task.

It’s possible that I also need help with some configuration/performace  
stuff, since I’m not really an expert (I come from the php world)

Page me or reply in this forum.

Guillermo

---

<div class="post-metadata">

**Author:** ![gomix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/858c86/32.png) [@gomix](https://www.ruby-forum.com/u/gomix)\
**Post date:** [April 3, 2009, 3:16am UTC](https://www.ruby-forum.com/t/need-help-with-image-resizing-and-configuration-in-rails/164604/2 "2009-04-03T03:16:39Z")

</div>

Guillermo Gonzalez wrote:

> Hello,
> 
> I’m trying to finish a Ruby on Rails proyect for a client and I just  
> need someone to help me out with implementing a resizing function with  
> RMagic. I’m offering to pay a modest price according to the time  
> invloved in the task.
> 
> It’s possible that I also need help with some configuration/performace  
> stuff, since I’m not really an expert (I come from the php world)
> 
> Page me or reply in this forum.
> 
> Guillermo

I have used attachment\_fu with ImageScience for that purpose in an  
existing application. But, I know a lot of people like Paperclip as  
well.

> **[GitHub - technoweenie/attachment\_fu: Treat an ActiveRecord model as a file...](https://github.com/technoweenie/attachment_fu/tree/master)**
>
> master

> **[GitHub - thoughtbot/paperclip at master](https://github.com/thoughtbot/paperclip/tree/master)**
>
> master

I found attachment\_fu really easy to setup once I got ImageScience  
installed and running. But, it equally supports RMagic as well. I just  
didn’t need all the extras of RMagic so I just used the smaller  
ImageScience. I only needed resizing.

---

<div class="post-metadata">

**Author:** ![gomix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/858c86/32.png) [@gomix](https://www.ruby-forum.com/u/gomix)\
**Post date:** [April 3, 2009, 5:00am UTC](https://www.ruby-forum.com/t/need-help-with-image-resizing-and-configuration-in-rails/164604/3 "2009-04-03T05:00:47Z")

</div>

Something like this?

class Photo \< ActiveRecord::Base  
has\_attachment :storage =\> :file\_system,  
:resize\_to =\> ‘640\>’,  
:thumbnails =\> { :thumb =\> ‘160\>’, :tiny =\> ‘50\>’ },  
:max\_size =\> 5.megabytes,  
:content\_type =\> :image,  
:processor =\> ‘Rmagick’  
validates\_as\_attachment  
belongs\_to :user  
end

On Apr 2, 12:32 pm, Guillermo Gonzalez \<rails-mailing-l…@andreas-

---

<div class="post-metadata">

**Author:** ![gomix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/858c86/32.png) [@gomix](https://www.ruby-forum.com/u/gomix)\
**Post date:** [April 3, 2009, 8:11am UTC](https://www.ruby-forum.com/t/need-help-with-image-resizing-and-configuration-in-rails/164604/4 "2009-04-03T08:11:03Z")

</div>

Hey Guillermo Gonzalez,

Check resize functions here -  
[http://studio.imagemagick.org/RMagick/doc/usage.html#modifying](http://studio.imagemagick.org/RMagick/doc/usage.html#modifying)

if it works then send me $$$$$ 🙂

Regards,  
Manohar
