crispab / signup

SignUp is a calendar/reminder service for groups that get together from time to time
http://crispab.github.io/signup
6 stars 3 forks source link

Upload profile photo #63

Closed jgrape closed 10 years ago

jgrape commented 10 years ago

As a user I can upload a profile photo so that I don't have to use the complicated service gravatar.com to show my fellow users what I look like

Acceptance criteria:


Trello: https://trello.com/c/QTeX9vf2

jgrape commented 10 years ago

One idea would be to use another service for storing the images, like Dropbox.

Another would be to store the files in the PostgreSQL database as some kind of binary objects.

jgrape commented 10 years ago

Some resources: https://github.com/sksamuel/scrimage http://jasny.github.io/bootstrap/javascript/#fileinput http://wsnippets.com/fancy-profile-image-upload-crop-jquery-ajax-php/ http://odyniec.net/projects/imgareaselect/ http://blueimp.github.io/jQuery-File-Upload/basic.html http://deepliquid.com/content/Jcrop.html

jgrape commented 10 years ago

https://addons.heroku.com/cloudinary storage and manipulation of images

http://cloudinary.com/blog/cloudinary_as_the_server_side_for_javascript_image_cropping_libraries

jgrape commented 10 years ago

Possible implementation plan:

  1. Select to upload new profile photo => wizard starts
  2. Select and upload image, store on Cloudinary in original size. https://github.com/cloudinary/cloudinary_scala http://cloudinary.com/blog/direct_image_uploads_from_the_browser_to_the_cloud_with_jquery
  3. Crop & rezise image interactively using ImageAreaSelect. http://odyniec.net/projects/imgareaselect/examples.html#fixed-aspect-ratio
  4. Post coordinates to SignUp who stores them with the Cloudinary URL. http://odyniec.net/projects/imgareaselect/examples-callback.html#submitting-selection-coordinates
  5. Compose a Cloudinary URL that crops and resizes on the fly to be used by SignUp. http://cloudinary.com/blog/cloudinary_as_the_server_side_for_javascript_image_cropping_libraries