2
votes

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.

3
Sounds pretty good. If you wanted to be coughlazycough you could also display avatars for users via Gravatar. Sounds like avatars are a major feature of your app, though, so that may not be a fit, but just noting.GoGoCarl
but it's work around, and hard to load avatar for user without gravatar account ^)Egor Malkevich

3 Answers

5
votes

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

2
votes

Check out this tutorial here (skip to 12:50 to see if it's even what you're after). It uses JCrop on the client side of a Rails application for the user to crop their avatar and then save it on the server side.

Hope this helps!