~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
..
source 148 14 years ago Francois Marier Basic working Debian packaging, ready to be deploy Diff
changelog 259 14 years ago Francois Marier Bump changelog for release 2.7 KB Diff Download File
compat 148 14 years ago Francois Marier Basic working Debian packaging, ready to be deploy 2 bytes Diff Download File
control 269 14 years ago Francois Marier Add gearman support for cropping/resizing photos 1.8 KB Diff Download File
copyright 267 14 years ago Francois Marier Bump copyright notice to 2011 to all files I touch 35.4 KB Diff Download File
libravatar-cdn.dirs 148 14 years ago Francois Marier Basic working Debian packaging, ready to be deploy 15 bytes Diff Download File
libravatar-cdn.install 148 14 years ago Francois Marier Basic working Debian packaging, ready to be deploy 39 bytes Diff Download File
libravatar-cdn.logrotate 178 14 years ago Francois Marier Logrotate the apache log files 258 bytes Diff Download File
File libravatar-cdn.postinst 244 14 years ago Francois Marier Make sure mod_headers is enabled 2.4 KB Diff Download File
File libravatar-cdn.prerm 148 14 years ago Francois Marier Basic working Debian packaging, ready to be deploy 1013 bytes Diff Download File
File libravatar-common.config 148 14 years ago Francois Marier Basic working Debian packaging, ready to be deploy 401 bytes Diff Download File
libravatar-common.dirs 249 14 years ago Francois Marier Make use of the upstream Makefile for css/js files 106 bytes Diff Download File
libravatar-common.docs 148 14 years ago Francois Marier Basic working Debian packaging, ready to be deploy 7 bytes Diff Download File
libravatar-common.install 249 14 years ago Francois Marier Make use of the upstream Makefile for css/js files 772 bytes Diff Download File
libravatar-common.links 249 14 years ago Francois Marier Make use of the upstream Makefile for css/js files 88 bytes Diff Download File
File libravatar-common.postinst 151 14 years ago Francois Marier Create a new cdn-common.include file to avoid modi 1.9 KB Diff Download File
File libravatar-common.postrm 186 14 years ago Francois Marier More precise message about having to manually dele 1.2 KB Diff Download File
File libravatar-common.prerm 151 14 years ago Francois Marier Create a new cdn-common.include file to avoid modi 949 bytes Diff Download File
libravatar-common.templates 148 14 years ago Francois Marier Basic working Debian packaging, ready to be deploy 848 bytes Diff Download File
libravatar-seccdn.dirs 148 14 years ago Francois Marier Basic working Debian packaging, ready to be deploy 15 bytes Diff Download File
libravatar-seccdn.install 148 14 years ago Francois Marier Basic working Debian packaging, ready to be deploy 42 bytes Diff Download File
libravatar-seccdn.logrotate 178 14 years ago Francois Marier Logrotate the apache log files 264 bytes Diff Download File
File libravatar-seccdn.postinst 244 14 years ago Francois Marier Make sure mod_headers is enabled 2.5 KB Diff Download File
File libravatar-seccdn.prerm 148 14 years ago Francois Marier Basic working Debian packaging, ready to be deploy 1022 bytes Diff Download File
libravatar-seccdn.README.Debian 148 14 years ago Francois Marier Basic working Debian packaging, ready to be deploy 146 bytes Diff Download File
File libravatar-www.config 170 14 years ago Francois Marier Reduce the debconf priority of the Analytics quest 680 bytes Diff Download File
File libravatar-www.cron.daily 269 14 years ago Francois Marier Add gearman support for cropping/resizing photos 314 bytes Diff Download File
libravatar-www.dirs 268 14 years ago Francois Marier Remove directory that's no longer used in the -www 36 bytes Diff Download File
libravatar-www.install 234 14 years ago Francois Marier Move all static files to both CDNs This was a rec 105 bytes Diff Download File
File libravatar-www.libravatar-cropresize.init 269 14 years ago Francois Marier Add gearman support for cropping/resizing photos 3.4 KB Diff Download File
File libravatar-www.libravatar-ready2user.init 269 14 years ago Francois Marier Add gearman support for cropping/resizing photos 4.1 KB Diff Download File
libravatar-www.links 235 14 years ago Francois Marier Move settings.py to /etc/libravatar/ since it's a 71 bytes Diff Download File
libravatar-www.logrotate 178 14 years ago Francois Marier Logrotate the apache log files 258 bytes Diff Download File
File libravatar-www.postinst 269 14 years ago Francois Marier Add gearman support for cropping/resizing photos 5.2 KB Diff Download File
libravatar-www.postrm 269 14 years ago Francois Marier Add gearman support for cropping/resizing photos 1 KB Diff Download File
File libravatar-www.prerm 148 14 years ago Francois Marier Basic working Debian packaging, ready to be deploy 1 KB Diff Download File
libravatar-www.templates 167 14 years ago Francois Marier Add optional support for Google Analytics 1.7 KB Diff Download File
pyversions 148 14 years ago Francois Marier Basic working Debian packaging, ready to be deploy 4 bytes Diff Download File
File rules 269 14 years ago Francois Marier Add gearman support for cropping/resizing photos 230 bytes Diff Download File