Commit graph

72 commits

Author SHA1 Message Date
Bryan Veloso
56d8b80a12 Future-proofing our PIL imports, fixes #37. 2011-10-13 14:35:16 +09:00
Bryan Veloso
2d4f116e57 Whitespacing and PEP8-ing. 2011-10-11 02:16:22 +09:00
Bryan Veloso
f0269831fd Clearing out some unused imports. 2011-10-11 02:13:31 +09:00
Bryan Veloso
0ddff78068 We no longer import *. 2011-10-11 02:10:38 +09:00
Bryan Veloso
5e72d9f5e4 Prefer cStringIO. 2011-10-11 02:08:05 +09:00
Bryan Veloso
db86d7ed66 Killing off some stray tabs. 2011-10-11 01:12:30 +09:00
Jeff Ammons
2a37d7bfdc Changed id to pk in case the primary key isn't called 'id' 2011-10-06 16:15:26 -07:00
Bryan Veloso
cec46b3176 Merge pull request #32 from ryanbagwell/develop
Trasparency preservation patch
2011-09-26 03:06:04 -07:00
Ryan Bagwell
ff07e4e247 dynamically getting colors, instead of setting it to 255 2011-09-25 17:53:51 -05:00
Ryan Bagwell
b96a3f53a5 adding transparency patch to preserve transparency when saving the image 2011-09-25 15:49:32 -05:00
Bryan Veloso
df93146049 Making versioning a little easier on myself. 2011-09-12 14:17:12 -07:00
unknown
e295c9c039 error fix: https://github.com/jdriscoll/django-imagekit/issues/25 2011-09-12 17:43:53 +08:00
Bryan Veloso
9af96b4098 Creating a dedicated tests directory.
Moves tests.py out of the main module. Still a work in progress.
2011-09-09 16:33:42 -07:00
Bryan Veloso
7cb59c7351 Think it's time to bump to 0.4.0. 2011-09-07 15:52:14 -07:00
Matthew Tretter
2387cc4be2 Added ability to specify specs in IKOptions directly. 2011-09-02 23:35:58 -04:00
Markus Kaiserswerth
3e3302c7f7 Improve fault tolerance of Accessor._delete()
Handle/ ignored NotImplementedError and IOError which might get thrown
by the storage backend on delete.
2011-08-26 16:42:14 +02:00
BaBaBags
db95e63a63 Added support for preserving transparency when converting from color to greyscale 2011-08-23 10:20:37 -04:00
Bers
aa348d76f6 fix issue #12 2011-07-04 04:09:31 -07:00
Josh Ourisman
5976a512e6 allowing any fields on the object to be specified for use in naming of generated images; default to allowing pk 2011-06-28 14:27:47 -04:00
Josh Ourisman
9845befd96 Added the pk of the object into the dictionary of values passed to the string formatting for cache_filename. 2011-06-28 11:08:05 -07:00
Shanto
6b1aff64c2 Fixes: CMYK files from Photoshop fails to load with exception -2 2011-06-17 13:13:20 -07:00
Bryan Veloso
9637a43551 Bumping the verison numbers. 2011-04-01 11:56:44 -07:00
Bryan Veloso
f777c08b17 Whitespacing. 2011-03-26 00:46:17 -07:00
Jonathan Slenders
57ef4748b9 fixed 'sender' not defined bug (2) 2011-03-26 15:40:22 +08:00
Jonathan Slenders
53cddf7752 fixed 'sender' not defined bug 2011-03-26 15:40:21 +08:00
Bryan Veloso
ad3f15ef76 Instead of overriding Model.delete(), we'll connect a public clear_cache() method to a post_delete() signal so that bulk actions clean props as well. 2011-02-23 12:54:09 -08:00
Bryan Veloso
1b29437180 Bumping the version number. 2011-02-12 14:04:42 -08:00
Bryan Veloso
c566378764 Accessor._delete() and Accessor._exists() needed conditionalizing as well. ikflush was yelling at me. 2011-02-13 05:52:07 +08:00
Bryan Veloso
5d0808467e Bumping internal version to 0.3.4. 2011-02-11 12:52:42 -08:00
Greg Newman
2b80ccf2e3 patch applied badly, fixing if 2011-02-12 04:12:37 +08:00
Greg Newman
34a2640cf5 if the ImageField is null and not required, don't create 2011-02-12 04:06:19 +08:00
Bryan Veloso
5d1c898283 Flush newer records first. Also, spacing. 2011-02-10 19:00:35 -08:00
Bryan Veloso
90dab6c8a1 Don't pre_cache if we don't have an image. 2011-02-10 16:56:31 -08:00
Bryan Veloso
ea35379fd2 Don't create the image if spec.pre_cache is True. 2011-02-10 16:23:36 -08:00
Justin Driscoll
7076e520f7 Fixed type 2010-06-12 15:05:31 -04:00
Justin Driscoll
93a71c4c60 Merged changes 2010-06-12 15:04:43 -04:00
Justin Driscoll
ec83074cee ImageKit should now support optional imagefields better now. 2010-06-12 15:03:59 -04:00
Justin Driscoll
d588be8b8a Bumped version number 2010-04-26 10:40:24 -04:00
Justin Driscoll
4ce59d3e31 Reverted changes to cache path that could possible cause filename collisions 2010-04-22 16:39:51 -04:00
Justin Driscoll
02019f7263 Imagekit not longer uses the appends the upload_to path of the image when generating the cache filename. The new default format is [media_root]/[cache_dir]/[cache_filename]. 2010-01-25 16:19:29 -05:00
Justin Driscoll
125c2c1470 Cleaned up trailing whitespace 2009-12-19 11:01:54 -05:00
Ben Jackson
26f01721df Add IKOption.storage to explicitly set cached thumbnail storage.
Original image storage is still the default, and the original image
is always read from its own storage.
2009-12-17 22:26:19 -08:00
Justin Driscoll
f28683dd0f Fixed indentation error 2009-09-14 14:51:29 -04:00
Justin Driscoll
fa6659162c Added 'replace' argument to save_image 2009-09-02 14:26:30 -04:00
Justin Driscoll
ae14d137de Added tests for save_image method 2009-09-02 14:20:43 -04:00
Justin Driscoll
bc4ff39e9e Added save_image method to ImageModel 2009-09-02 14:20:30 -04:00
Justin Driscoll
77e953edcb Escaped urls in admin_thumbnail 2009-08-31 17:00:38 -04:00
Justin Driscoll
48a2035665 Merged changes 2009-08-11 17:59:03 -04:00
Justin Driscoll
2e0530bb50 Added support for functions in cache_dir 2009-08-11 17:58:22 -04:00
Justin Driscoll
1d82a64bd7 Fixed indent and refactored ikflush command (issue #19) 2009-08-10 14:30:41 -04:00