-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add user profile images #110
Comments
@dpalomino backlog again :) |
Included, thanks! |
@dpalomino Is this first contributor friendly? I think it would be important for a contributor to outline their thought process before working on any code. Thoughts? |
I think if they outlined their process it could be. |
@wonderchook - cool, thanks! I'll update the description with those details. |
@wonderchook @clash99 In order to add an Image upload option:
I hope this will satisfy all your requirements for the outline. If not please suggest what other details I should incorporate so that I can start working on it. |
Hello, |
Hi @pranjaltale16, thanks for your proposed outline. You should address the requirement that profile images need to be displayed at different sizes at various points in the platform. See guidelines for first time contributors in @ian-ross's original post above. See https://github.com/Cadasta/cadasta-platform/blob/master/cadasta/resources/models.py for possible approaches. |
Hello, @bjohare
I believe it's better to save a single image and apply required dimensions at each place directly in templates / CSS. And for |
@pranjaltale16 according to what you're proposing, we would need to send the full image to the client in cases where we only need to send a thumbnail, for example in the profile section of the top bar and in places where we list users. This is not an acceptable approach. |
@bjohare I thought of two methods to work upon:
The second one would be a better option I suppose. |
@pranjaltale16 it would be better to do all processing when the profile photo is uploaded. What you are suggesting now would work now, but would cause undue load on the server so as traffic to Cadasta increases would be problematic. |
@wonderchook @bjohare
|
@wonderchook @bjohare |
@pranjaltale16 Yes, you need to process the image when it's uploaded. We already have functionality to create thumbnails in place for resources. Please have a look at those parts, I'm sure there is code you can re-use. It might need some refactoring though to make it generic. |
@pranjaltale16 have a look at https://github.com/Cadasta/cadasta-platform/blob/master/cadasta/resources/models.py again. We create thumbnails when the resource is uploaded. There is also a |
@oliverroick @bjohare |
@pranjaltale16 please go ahead.. |
@bjohare Thanks! |
Hello again, |
Can you point me to the mock up above you are referring to? It might not exist yet. |
@pranjaltale16 - The dashboard isn't developed yet. It is still in discussion. |
@clash99 @wonderchook here is the link for the mock-up that I was talking about |
Backlog id 13.00 |
Dup of #1485. Closing. |
Allow users to upload and manage an image for their profile (depends on Resources):
FIRST TIME CONTRIBUTORS: Please outline your thoughts on how to develop this before submitting any code changes. Keep in mind the various sizes that might be needed across the platform and make recommendations on how to best handle those.
Sample placements below
Header area next to username:
Member list used in an overview page:
Member permissions page:
The text was updated successfully, but these errors were encountered: