Jannis Leidel
|
929c8a0e4f
|
Added thumb quality setting which is used in the create_thumbnail() method.
|
2010-03-16 14:56:15 +01:00 |
|
PLHW
|
233422eefd
|
adding default quality param to create_thumbnail
Signed-off-by: Jannis Leidel <jannis@leidel.info>
|
2010-03-16 14:31:25 +01:00 |
|
Eric Florenzano
|
111ecd8543
|
Obsessive compulsive import cleanup
|
2010-02-22 18:52:37 -05:00 |
|
Eric Florenzano
|
5648cb9f11
|
Cleanup, reorganization, moved the default avatar url to conform to community standards, and added a test to ensure that it's correct.
|
2010-02-22 18:48:22 -05:00 |
|
Eric Florenzano
|
3035f0adc8
|
Use PyFlakes to fix some fail
|
2010-02-22 16:47:10 -05:00 |
|
Mathieu Pillard
|
c364ca7aa1
|
Replace hashlib by django's md5_constructor
|
2010-02-22 16:36:55 -05:00 |
|
Eric Florenzano
|
2e55166df6
|
Fixed conflicts
|
2010-02-22 16:35:57 -05:00 |
|
Mathieu Pillard
|
ea8479d7bb
|
Force thumbnail extension if AVATAR_HASH_FILENAMES is true. Avoids having
.jpg images that are really PNGs.
|
2010-02-22 16:33:56 -05:00 |
|
Mathieu Pillard
|
ce88c225ca
|
Oops.
|
2010-02-22 16:33:14 -05:00 |
|
Mathieu Pillard
|
757283b823
|
Implement filename hashing (in case we don't want to blindly accept the filenames supplied by the user) and directory hashing (to allow
storage paths like /avatars/a/b/<user>/...)
|
2010-02-22 16:32:55 -05:00 |
|
Mathieu Pillard
|
aaeca7222e
|
Thumbnails path simplification - /AVATAR_STORAGE_DIR/<user>/resized/<size>/<name> is enough. And this
method is more DRY, which will help when we'll implement the advanced storage path stuff
|
2010-02-22 16:32:22 -05:00 |
|
Mathieu Pillard
|
b2f3bec769
|
This time it should really work in every case... I hope. This really needs some unit tests.
|
2010-02-22 16:32:00 -05:00 |
|
Mathieu Pillard
|
2055adb46d
|
This was needed too - basically, only enforce AVATAR_MAX_AVATARS_PER_USER in the form.
|
2010-02-22 16:31:36 -05:00 |
|
Mathieu Pillard
|
5621d867b1
|
use the user from the avatar instance
|
2010-02-22 16:31:28 -05:00 |
|
Mathieu Pillard
|
0b5674f008
|
Simplify image handling. Breaks the new AVATAR_DONT_SAVE_DUPLICATES setting but I will revisit it later in a cleaner way
|
2010-02-22 16:31:14 -05:00 |
|
Mathieu Pillard
|
8a680ecd66
|
Actually not a good idea at all :) Just don't bother updating and that's it.
|
2010-02-22 16:30:41 -05:00 |
|
Mathieu Pillard
|
dd1e3069ce
|
Make thumbnail format configurable
|
2010-02-22 16:29:39 -05:00 |
|
Mathieu Pillard
|
a686c9b900
|
Don't use only(id) now that we are deleting instead of updating
|
2010-02-22 16:29:28 -05:00 |
|
Mathieu Pillard
|
188c4dece0
|
Deleting instead of updating for now
|
2010-02-22 16:29:19 -05:00 |
|
Mathieu Pillard
|
afde1c6268
|
special case for AVATAR_MAX_AVATARS_PER_USER == 1: try to work always on the same db row, by re-using the id.
|
2010-02-22 16:23:35 -05:00 |
|
Mathieu Pillard
|
731e580c91
|
Don't update the other avatars if the maximum is set to 1: it shouldn't happen.
|
2010-02-22 16:21:12 -05:00 |
|
Brian Rosner
|
737bf1d821
|
Removed some legacy code that is no longer used. Closes #1.
Due to catching the User post_save signal this would be fired on each login
since last_login is always updated.
|
2009-04-23 12:43:55 -06:00 |
|
Eric Florenzano
|
221b52a65c
|
Fixed the apparent problem with PNG and S3 that some were seeing. Thanks, msaelices and bryanveloso. Along with that fix also comes support for not resizing an image if it's already the correct size.
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@35 c76b2324-5f53-0410-85ac-b1078a54aeeb
|
2008-12-04 08:59:40 +00:00 |
|
Eric Florenzano
|
57c036ed39
|
Slightly shallower resized image paths.
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@32 c76b2324-5f53-0410-85ac-b1078a54aeeb
|
2008-10-28 06:53:08 +00:00 |
|
Eric Florenzano
|
c3fadc0377
|
Completely refactored this package so that it no longer references the local filesystem. The API has been simplified and it has been tested with both file system backends and S3 backends. Gearing up for the first official release.
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@30 c76b2324-5f53-0410-85ac-b1078a54aeeb
|
2008-10-28 06:39:21 +00:00 |
|
Eric Florenzano
|
ba8e3268fb
|
Made all imports relative and cleaned up the imports in general. Thanks, PyFlakes!
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@29 c76b2324-5f53-0410-85ac-b1078a54aeeb
|
2008-10-20 01:11:10 +00:00 |
|
James Tauber
|
e8ff23bbb6
|
fixed force_insert problem
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@28 c76b2324-5f53-0410-85ac-b1078a54aeeb
|
2008-09-01 12:47:43 +00:00 |
|
Eric Florenzano
|
53a44ef2c0
|
Changed the max_length of the avatar ImageField, as we were seeing some errors about the path being too short.
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@26 c76b2324-5f53-0410-85ac-b1078a54aeeb
|
2008-08-16 06:07:06 +00:00 |
|
Eric Florenzano
|
559eb4ae99
|
Fixed problem with uploading .GIF files, as they need to be conditionally converted to RGB.
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@23 c76b2324-5f53-0410-85ac-b1078a54aeeb
|
2008-08-16 05:48:33 +00:00 |
|
Eric Florenzano
|
b6bf5cf1d0
|
Modified the rest of the module to be able to make use of the new added flexibility of the non-gravatar interface.
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@20 c76b2324-5f53-0410-85ac-b1078a54aeeb
|
2008-08-12 08:12:38 +00:00 |
|
Eric Florenzano
|
810ce3f8e4
|
Completely refactored this module. The model has been changed to reflect more sane defaults. A new set of templatetags have been created as well, however, the gravatar public API has been preserved. The only thing that still needs to be done is to rewrite the administrative views for uploading/deleting/changing avatars.
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@19 c76b2324-5f53-0410-85ac-b1078a54aeeb
|
2008-08-10 22:55:25 +00:00 |
|
Eric Florenzano
|
9e85aba9f7
|
Initial version.
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@2 c76b2324-5f53-0410-85ac-b1078a54aeeb
|
2008-08-01 09:27:59 +00:00 |
|