What is the best practice for displaying a user's profile photo? - upload

A customer has asked me to build them an online application that allows a user to upload their profile photo. What I am trying to understand is it is best practice to implement a Gravatar or allow them to upload a new photo?
If it is better to use Gravatar will most average users know how to do that? Is there a DotNet plugin available to do that? Or it is better to allow them to upload their photo and use a face-detection plugin to display the best photo possible?
If uploading is the industry best practice then what are the best practices that I should follow to get the best image possible. I know that face detection would be good to use so that users are seeing the face in the profile photo.
Any help is appreciated on this question.

Related

Can I access the pictures of the app user?

I am building a game related with the picture of the client from his album.
I need him to authorize access his album, but can I use his pictures?
For example, imagine a game of finding errors. I use one of his pictures in my app, change 7 objects, and ask him to find the changes.
Is it possible?
The user will be able to give you access to their pictures. But in terms of identifying objects in the picture and making changes to them, you will have to code in some pretty advanced image processing functionality.

Best approach to Users Profile Images in Rails App

I am new to Rails and have been diving into many tutorials and online material. I am now beginning to plan/develop my own app. From all the reading I have done I am yet to come across an industry standard way of handling user profile pictures. I have bullet point what I intend to do (below) and would like some suggestions whether this is a good approach and on the right track or whether there is a much better/secure/standard way:
add a 'ProfilePhotoPath' column to my User Model/Table of type String, which will hold the location path/name of the photo
on sign-up form implement an image upload functionality to upload profile pic and store at specified location (reference in step 1 above)
note: I have come across the 'paperclip gem' and 'imagemagick', is this a better easier approach to what I want to achieve?
There are two better ways to upload profile image using Carrierwave or Paperclip.
If you want to use Carrierwave then refer this tutorial Image Upload using Carrierwave
And if you want to go for Paperclip, then refer this links Upload image using Paperclip video tutorial
Another link with steps is Upload profile image using Paperclip
Most people use Paperclip or a more robust solution would be Carrierwave.
Both are really good. I would tell you to learn Paperclip first.
It's fairly easy if you're just starting out.
Edit: checkout this link. Click the green 'run' button to see the app.
http://runnable.com/UnnhcBiQoFhwAAEb/how-to-upload-files-using-paperclip-for-ruby-on-rails

rails 4 - what wysiwyg offers image uploading based on user groups?

Not sure the title explains what i'm trying to do or not. Basically, i am building a wiki-like ruby on rails application. I have model called Page that needs a WYSIWYG for the content data. My application has many users that will be grouped by an Organization so each user will belong_to an Organization. My only requirements are 1) it is a WYSIWYG that allows S3 image uploading and 2) When you click "upload image" you should be able to see all the images that have been uploaded by users that belong to the same organization as you. I will need to store the images in a bucket in S3 like <bucket_name>/<organization_id>/rest_of_image_path.... Hopefully this all makes sense.
Does anyone know of a wysiwyg editor that will do this? If someone could point me in the right direction i'd be greatly appreciative! Also, if this is not the appropriate place for this question to be please let me know and i'll move it. Thanks!

User photos album in Ruby on Rails

I am building an app where user can upload pictures. For now only one picture at a time will do. I have searched around the Web and here at Stack Overflow, but don't really seem to find what I am looking for or at least I don't know what I am looking for if it exists here at the site.
I have tried implementing paperclip and allow users to upload pictures through that and not deleting the old picture when uploading a new one. But I don't really know where to go from here to display all the pictures that a user has uploaded. How do I do this the best way? Should I continue using paperclip or is there an even more suitable gem for my needs?
I prefer carrierwave, over Paperclip, because it has more options and easy to setup. However without knowing what is your ultimate goal for your photo app, it's a little hard to tell what to do next.
If you have a roadmap or feature list, that would be helpful for us to help you with your next move.
But, if it is a simple photo app, might as well try to build it on top of an existing CMS like Refinery; you could easily build a plugin to upload images with Refinery.

Image upload options for website users

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
In alternate plugin to manage your upload file is carrierwave
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
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.

Resources