views:

50

answers:

4

I want to be able to provide my website users with the ability to upload a profile picture. What are my options? What is the best way to do this? I would need to be able to limit the image size, crop / resize the image so that I can display thumbnails of the image. The website is written using Ruby on Rails

A: 

The PaperClip plugin is pretty much the new hotness (standard):

http://github.com/thoughtbot/paperclip

It supports different image processors but we use ImageScience. RMagick leaks memory

Cody Caughlan
+2  A: 

This Railscast on using Paperclip and cropping images sounds perfect for you!

John Topley
+1  A: 

In alternate plugin to manage your upload file is carrierwave

shingara
A: 

I agree with the others recommendation of Paperclip for handling any kind of upload.

However for profile pictures in particular, if you are storing your user's email addresses you might like to consider using Gravatar, as StackOverflow does, to effectively "outsource" this functionality and let your users maintain consistent avatars among all the sites they use.

Tobias Cohen
how i can use this two method Gravtar or Self-image upload system too.
4thpage