# Which plugin to use for (image) files

**URL:** <https://www.ruby-forum.com/t/which-plugin-to-use-for-image-files/174952>\
**Category:** Rails\
**Created:** [September 4, 2009, 3:44pm UTC](https://www.ruby-forum.com/t/which-plugin-to-use-for-image-files/174952 "2009-09-04T15:44:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jarl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6bbea6/32.png) [@jarl](https://www.ruby-forum.com/u/jarl)\
**Post date:** [September 4, 2009, 3:44pm UTC](https://www.ruby-forum.com/t/which-plugin-to-use-for-image-files/174952/1 "2009-09-04T15:44:07Z")

</div>

Hi.

I hope I don’t start a religiuos war now.

I am looking for a plugin to handle files (images actually).  
Here is a list of features that I would like

1. I would like many images for a single model. (has\_many)
2. I would like to store images in several resolutions (automatically)
3. I would like the images to be stored in DB.

I hage looked at attachment\_fu and paperclip.

It seems like attachment\_fu will do the work. It seems like paperclip  
cannot satisfy requirement (1) and (3).

Any comments?

Any other plugins that I should investigate?

Jarl

---

<div class="post-metadata">

**Author:** ![jarl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6bbea6/32.png) [@jarl](https://www.ruby-forum.com/u/jarl)\
**Post date:** [September 4, 2009, 5:13pm UTC](https://www.ruby-forum.com/t/which-plugin-to-use-for-image-files/174952/2 "2009-09-04T17:13:44Z")

</div>

> Any comments?

I’ve used them both and like paperclip for image handling better. It  
handles #2 quite well. It can also handle #1. Just create an Image  
model that uses paperclip and then your other Model can  
“have\_many :images”.

I’d rethink the need to put the images in the database, but that’s  
just me. I don’t know how hard it would be to write a DB  
implementation for Paperclip… probably wouldn’t be too bad as it’s  
already setup with multiple backends…

-philip

---

<div class="post-metadata">

**Author:** ![jarl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6bbea6/32.png) [@jarl](https://www.ruby-forum.com/u/jarl)\
**Post date:** [September 7, 2009, 11:08am UTC](https://www.ruby-forum.com/t/which-plugin-to-use-for-image-files/174952/3 "2009-09-07T11:08:28Z")

</div>

Thanks for your comment Philip.

Philip H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) writes:

> > Any comments?
> 
> I’ve used them both and like paperclip for image handling better. It  
> handles #2 quite well. It can also handle #1. Just create an Image  
> model that uses paperclip and then your other Model can  
> “have\_many :images”.

I now also see that it can store in DB:  
[http://patshaughnessy.net/2009/2/19/database-storage-for-paperclip](http://patshaughnessy.net/2009/2/19/database-storage-for-paperclip)

Do you have any hints on good tutorials and documentation for  
Paperclip.

Jarl
