# Paperclip vs. Attachment\_fu

**URL:** <https://www.ruby-forum.com/t/paperclip-vs-attachment-fu/148947>\
**Category:** Rails\
**Created:** [September 18, 2008, 3:48pm UTC](https://www.ruby-forum.com/t/paperclip-vs-attachment-fu/148947 "2008-09-18T15:48:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![CPerry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9d8465/32.png) [@CPerry](https://www.ruby-forum.com/u/CPerry)\
**Post date:** [September 18, 2008, 3:48pm UTC](https://www.ruby-forum.com/t/paperclip-vs-attachment-fu/148947/1 "2008-09-18T15:48:53Z")

</div>

I am working on a Rails app that involves my users uploading used  
items for sale. When they upload an item, they will also be uploading  
a photo of that item (in the future, possibly multiple images).

So, the image will obviously be associated with the item listing and  
the user listing it. Currently, I am thinking of storing the images on  
the server in the file system, but not totally sold on that option.  
Maybe you guys could also recommend an appropriate storage method.

Which plugin would you guys recommend to handle this, Paperclip or  
Attachment\_fu? What are the main differences between the two and which  
is easier to setup and use for my case?

Thanks!

---

<div class="post-metadata">

**Author:** ![CPerry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9d8465/32.png) [@CPerry](https://www.ruby-forum.com/u/CPerry)\
**Post date:** [September 18, 2008, 4:00pm UTC](https://www.ruby-forum.com/t/paperclip-vs-attachment-fu/148947/2 "2008-09-18T16:00:38Z")

</div>

Yeah, my main concern is expansion for later. I think I potentially  
have a project that could get rather large with many users and likely  
1,000’s of items listed. Attachment\_Fu seems like the way to go, but I  
found out about Paperclip yesterday and it seems really nice.

But, like you said, having those extra options may benefit me more in  
the long run.

–Cory

On Sep 18, 9:46 am, “Maurício Linhares” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![CPerry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9d8465/32.png) [@CPerry](https://www.ruby-forum.com/u/CPerry)\
**Post date:** [September 18, 2008, 3:51pm UTC](https://www.ruby-forum.com/t/paperclip-vs-attachment-fu/148947/3 "2008-09-18T15:51:14Z")

</div>

Paperclip is simpler to setup and it does what you’re looking for, but  
AttachmentFu has more features, like selecting which image processing  
tool and storage medium (you can even store files in a Amazon S3  
bucket), so, if you’re planning on expansion, AttachmentFu might be a  
better option, if you’re just looking for a simple tool what works,  
Paperclip may be better.

On Thu, Sep 18, 2008 at 10:39 AM, CPerry [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Which plugin would you guys recommend to handle this, Paperclip or  
> Attachment\_fu? What are the main differences between the two and which  
> is easier to setup and use for my case?
> 
> Thanks!
> 
> >

–  
Maurício Linhares  
[http://alinhavado.wordpress.com/](http://alinhavado.wordpress.com/) (pt-br) | [http://blog.codevader.com/](http://blog.codevader.com/)  
(en)  
João Pessoa, PB, +55 83 8867-7208

---

<div class="post-metadata">

**Author:** ![CPerry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9d8465/32.png) [@CPerry](https://www.ruby-forum.com/u/CPerry)\
**Post date:** [September 19, 2008, 3:12pm UTC](https://www.ruby-forum.com/t/paperclip-vs-attachment-fu/148947/4 "2008-09-19T15:12:43Z")

</div>

paperclip allows you to use s3 buckets. checkout  
[http://dev.thoughtbot.com/paperclip/classes/Paperclip/ClassMethods.html#M000004](http://dev.thoughtbot.com/paperclip/classes/Paperclip/ClassMethods.html#M000004).  
dunno why it’s not more prominently displayed [in the readme or  
whatever].  
gotta say, paperclip is just plain easy to setup. \<3 simplicity.

disclaimer: i’ve never used attachment\_fu but frequently hear people  
having  
problems with configuring it. something i don’t really hear with  
paperclip.  
[seriously (joking)… if you can’t get paperclip working… you  
probably  
can’t get rails up either.]

RSL

On Thu, Sep 18, 2008 at 9:46 AM, MaurÃ­cio Linhares \<

---

<div class="post-metadata">

**Author:** ![CPerry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9d8465/32.png) [@CPerry](https://www.ruby-forum.com/u/CPerry)\
**Post date:** [September 18, 2008, 4:54pm UTC](https://www.ruby-forum.com/t/paperclip-vs-attachment-fu/148947/5 "2008-09-18T16:54:56Z")

</div>

On Sep 18, 3:00 pm, CPerry [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> But, like you said, having those extra options may benefit me more in  
> the long run.
> 
> –Cory

Hi Cory,

I’ve used both on separate projects and agree with Mauricio that  
Paperclip is easier to use but it is really only for use where you  
have a model (e.g. Person), who has an attribute of photo. If you  
want the Person to have multiple photos, you would need to use  
attachment\_fu and if you want the photo to have its own attributes  
(e.g. title, location), attachment\_fu would be the way to go.

Best Regards

Robin

---

<div class="post-metadata">

**Author:** ![CPerry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9d8465/32.png) [@CPerry](https://www.ruby-forum.com/u/CPerry)\
**Post date:** [September 20, 2008, 5:59am UTC](https://www.ruby-forum.com/t/paperclip-vs-attachment-fu/148947/6 "2008-09-20T05:59:39Z")

</div>

On Thu, Sep 18, 2008 at 7:54 AM, Robin F.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> 

I have used both extensively. You can just as easily have a separate  
model  
for the purpose of having multiple photos with paperclip, as you can  
with  
attachment\_fu. One key advantage of paperclip over attachment\_fu when  
you  
have many images is that paperclip only needs one record for the image  
and  
all its thumbnails, whereas attachment\_fu uses a database record for  
each  
thumbnail as well. When you are dealing with hundreds of thousands of  
images, this decreased database usage can become significant.

–  
Benjamin C.  
[http://railskits.com/](http://railskits.com/) - Ready-made Rails code  
[http://catchthebest.com/](http://catchthebest.com/) - Team-powered recruiting  
[http://www.bencurtis.com/](http://www.bencurtis.com/) - Personal blog
