Question

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.

Était-ce utile?

La solution

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

Autres conseils

Paperclip (most popular)
Dragonfly

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!

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top