~libravatar/libravatar/master

  • Committer: Francois Marier
  • Date: 2011-01-10 09:58:51 UTC
  • Revision ID: git-v1:5c31aadc45b27048daf57abbdc171c60b8912d11
Add gearman support for cropping/resizing photos

This changes the upload process to something that is more secure and
scalable:

1- user uploads photo which gets saves to /uploaded by Django/Apache
2- user is redirected to a cropping page which determines the crop points
3- Django kicks uses a Gearman client to create a new cropresize job
4- The cropresize Gearman worker picks it up and reads in the file from
   /uploaded before cropping, resizing and optimising it to /ready
5- The cropresize worker creates a ready2user gearman job
6- The ready2user Gearman worker picks it up and moves the file from
   /ready to /user before deleting the file in /uploaded

The two Gearman workers have sample init scripts in
debian/libravatar-www.*.init and they run under different user accounts:

cropresize: libravatar-img (restricted user with write access to /ready)
ready2user: root
Filename Latest Rev Last Changed Committer Comment Size
..
config 63 15 years ago Francois Marier Include a full sample of the Apache vhost file as Diff
debian 148 14 years ago Francois Marier Basic working Debian packaging, ready to be deploy Diff
libravatar 22 15 years ago Francois Marier Move Django project into a subdirectory Diff
static 23 15 years ago Francois Marier Add static files to bzr (stylesheet and nobody ico Diff
.bzrignore 269 14 years ago Francois Marier Add gearman support for cropping/resizing photos 276 bytes Diff Download File
COPYING 30 15 years ago Francois Marier Add AGPL license and copyright headers As per htt 33.7 KB Diff Download File
HACKING 31 15 years ago Francois Marier Add instructions on getting involved with this pro 158 bytes Diff Download File
INSTALL 269 14 years ago Francois Marier Add gearman support for cropping/resizing photos 3.4 KB Diff Download File
Makefile 248 14 years ago Francois Marier Add the css/js minification/compression to the Mak 712 bytes Diff Download File
README 80 15 years ago Francois Marier Update mailing list URL and remove email 1.7 KB Diff Download File
THANKS 81 15 years ago Francois Marier Add a file for thanking non-copyright holder contr 175 bytes Diff Download File
TODO 266 14 years ago Francois Marier Remove two done tasks for federation and add a not 5.1 KB Diff Download File