Matthew Tretter
af7c12cb68
Tell people to import fields from the models module
2012-04-20 21:43:59 -04:00
Matthew Tretter
667e265c94
Refactored AutoConvert into prepare_image
...
Because of its need to return kwargs for ``Image.save()``, it never
really fit the mold of a processor.
2012-04-20 21:37:43 -04:00
Matthew Tretter
222c9ba22a
Docstring for save_image
2012-04-20 21:23:06 -04:00
Matthew Tretter
b6f629d644
Kill PIL's chattiness; fixes #91
2012-04-20 01:55:00 -04:00
Matthew Tretter
5fdf9d6a91
PIL bug workaround
2012-04-20 00:46:35 -04:00
Matthew Tretter
6f8a22c5bf
Use StringIO instead of temp file
2012-04-20 00:46:33 -04:00
Matthew Tretter
e0c9708e63
Extract reusable save_image function
2012-04-20 00:46:08 -04:00
Matthew Tretter
7d5937ebe6
Rename SpecFile and move it to utils
2012-04-19 21:33:56 -04:00
Matthew Tretter
8044b97a33
Extract suggest_extension util from generator
2012-04-19 21:33:52 -04:00
Matthew Tretter
6e4a8d1b58
Woah, globals
2012-04-09 21:27:09 -04:00
Bryan Veloso
3fe63daef3
Merge pull request #123 from claymation/develop
...
Add SpecFile.__unicode__
2012-03-27 17:22:36 -07:00
Clay McClure
db4df4f82c
Add SpecFile.__unicode__
...
SpecFile is based after django.core.files.base.ContentFile, which lacks a __unicode__
method. This leads to an AttributeError when SpecFile.__repr__ is called. This is
easily resolved by giving SpecFile a proper __unicode__ method.
2012-03-27 17:17:54 -04:00
Bryan Veloso
1c8987e353
Merge pull request #121 from cyberdelia/celery-improvements
...
Delete file before re-generating it
2012-03-23 13:04:22 -07:00
Timothée Peignier
39b2feda5a
delete file before re-generating it to avoid ill named file
2012-03-23 12:13:53 +01:00
Timothée Peignier
bc7852be21
fix typo in celery backend
2012-03-20 20:06:41 +01:00
Bryan Veloso
c46a403baa
Using Django's method of versioning. Also updating the docs' version.
2012-03-20 02:44:53 -07:00
Bryan Veloso
cad5d94661
I think this is fitting now.
2012-03-20 02:39:36 -07:00
Bryan Veloso
3d14800049
Getting rid of versiontools.
2012-03-20 02:39:28 -07:00
Bryan Veloso
f54ff8796e
Merge pull request #114 from cyberdelia/cache-backends
...
Add celery backend and separate backends.
2012-03-15 12:46:07 -07:00
Timothée Peignier
d1af56ba3e
ensure task is correctly created
2012-03-15 10:37:28 +01:00
Matthew Tretter
8ee53b9fa2
Merge pull request #117 from cyberdelia/fixing-docs
...
Fix documentation build
2012-03-10 12:20:09 -08:00
Timothée Peignier
9700a10d4b
fix documentation build. close #56
2012-03-10 12:02:32 +01:00
Timothée Peignier
1e4ac109f7
rename async to celery
2012-03-08 19:58:36 +01:00
Timothée Peignier
7af4940914
try to import celery on init
2012-03-05 17:47:19 +01:00
Timothée Peignier
f3976a5c68
change import path
2012-03-05 17:36:08 +01:00
Timothée Peignier
983bceff62
rename CeleryCacheStateBackend as CeleryImageCacheBackend
2012-03-05 17:00:35 +01:00
Timothée Peignier
9fbdd7bef4
import base backends in imagecache module
2012-03-05 16:55:40 +01:00
Timothée Peignier
0fa86f7da8
rename celery module to async
2012-03-05 13:58:09 +01:00
Timothée Peignier
42c79d7bb2
declare celery backends in a separate module
2012-03-05 12:27:53 +01:00
Clay McClure
2cf425d8a3
Wrap ContentFile in a file-like object with a filename and content_type.
...
This extra layer of indirection allows us to tack some attributes
(name and content_type) onto the underlying file, which we cannot
do with a StringIO since it's a native ctype.
These attributes are used by various third-party software that expects
to work with django.core.files.File instances, and not directly with
StringIO instances. By way of example, the django-storages mosso
backend (CloudFilesStorage) looks for a content_type attribute, and
the cloudfiles Object backend looks for a name attribute.
2012-02-29 05:01:31 -05:00
Matthew Tretter
3a5d7da0d8
Validate the image any time the file is required
...
This means that accessing `path` or `size` will also validate,
closing #109
2012-02-23 17:46:57 -05:00
Matthew Tretter
24a2d772a6
Organized tests
2012-02-18 01:56:17 -05:00
Matthew Tretter
8fc71e689a
Cover renamed to ResizeToCover
2012-02-18 01:38:19 -05:00
Matthew Tretter
2431aa2d2e
Contributing note
2012-02-18 00:48:08 -05:00
Matthew Tretter
3b4e74c58b
Add @version2 to contributors
2012-02-18 00:35:34 -05:00
Matthew Tretter
00c1cd3f9e
Merge branch 'processor_updates' into develop
2012-02-18 00:20:59 -05:00
Matthew Tretter
e67934852d
Rename processors and clean up packages
2012-02-18 00:20:44 -05:00
Matthew Tretter
3912003f02
Rename Fit and Fill to ResizeToFit and ResizeToFill
2012-02-18 00:05:18 -05:00
Matthew Tretter
5a8564d039
Rename BasicResize to Resize
2012-02-17 23:55:59 -05:00
Matthew Tretter
3fad906305
Remove crop.Crop to avoid confusion with resize.Crop
2012-02-17 23:54:39 -05:00
Matthew Tretter
3e2bd2f21f
Crop processor consolidation
...
BasicCrop is absorbed into Crop and Crop uses ResizeCanvas
2012-02-17 23:22:56 -05:00
Matthew Tretter
a164427074
Don't use Anchor internals; allow any anchor tuple
...
ResizeCanvas now uses the anchor behavior of the Crop processor
2012-02-17 23:22:49 -05:00
Matthew Tretter
568c3d29a1
Default ResizeCanvas color
2012-02-17 22:39:43 -05:00
Matthew Tretter
6cca16ef99
Allow negative coordinates when using an anchor
2012-02-17 22:38:04 -05:00
Matthew Tretter
dd5efac0eb
A little AddBorer cleanup
2012-02-17 22:38:00 -05:00
Matthew Tretter
441266a6d7
Small ResizeCanvas fixes
2012-02-17 22:34:40 -05:00
Jan Sagemueller
b073868bb7
AddBorder, Anchor, and ResizeCanvas processors
...
[NEW] Processors: AddBorder
[NEW] Processors: Anchor has now its own class, taken from Crop
[CHG] Processors: Renamed Mat => ResizeCanvas, and will now use either
an anchor from Anchor or a user defined pixel offset
2012-02-17 21:48:32 -05:00
Jan Sagemueller
09ecbae143
Resize processor: Externalized transparency padding into new class Mat
...
Conflicts:
imagekit/processors/resize.py
2012-02-17 21:47:24 -05:00
Matthew Tretter
b016065807
Fix inheritance of ImageKitMeta objects
...
Fixes #100
2012-02-17 21:10:09 -05:00
Matthew Tretter
35b04aeb16
Abstract inheritance test; illustrates #100
2012-02-17 21:10:05 -05:00