Search code examples
ruby-on-railspaperclipcarrierwavejcropavatar

Rails avatar uploading


I'm looking for the best way for loading user avatar for rails app.

There is some of important cases:

  • load images from web or local
  • allow user crop image at preview window (with Jcrop for example)
  • save several sizes of avatar 64x64, 128x128, etc (Carrierwave or Paperclip no mater)
  • easy styling and customizing

I found https://github.com/ging/avatars_for_rails but interesting in any alternatives or good samples.


Solution

  • Please checkout http://odysseyonrails.com/articles/10. It has a demo code using paperclip and jcrop that fits all your needs.