Matthew Tretter
8cfe485a5a
Storage can be specified on a per-spec basis.
...
If not defined on the spec, IKOptions.default_storage will be used. If that's
not defined, it will fall back to the image field's storage.
2011-09-10 00:25:34 -04:00
Matthew Tretter
57a28091c5
Added default_image_field
...
This works kind of like Django's models' _default_manager. If your specs don't
specify an image_field, and your IKOptions don't specify a default_image_field,
the first ImageField your model defines will be used.
2011-09-10 00:25:27 -04:00
Matthew Tretter
4c78f2d24c
_imgfield is now a property of ImageSpec
...
Moved _imgfield from ImageModel to ImageSpec. Theoretically, this will allow you
to have specs that use different image fields on the same model.
2011-09-10 00:24:37 -04:00
Matthew Tretter
5e00de5204
Admin thumbnails.
2011-09-10 00:23:47 -04:00
Bryan Veloso
f9b79aa67f
Tests now pass and don't leave any directory cruft. Fixes #28 .
...
Tests were failing because they assumed that the file was deleted upon
teardown. This isn't the case after Django 1.3, where this no longer
happens. This fix removes any orphaned files (and directories) that were
created via the testing process.
2011-09-09 17:57:18 -07:00
Bryan Veloso
49df1caf63
Adding a test runner script a la #daniellindsleyrocksdahouse.
2011-09-09 17:53:00 -07:00
Bryan Veloso
e251b8903b
Creating a "core" test module.
2011-09-09 17:51:22 -07: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
6082b2b782
Let's get these docs started.
2011-09-09 15:53:49 -07:00
Matthew Tretter
a1f11facbe
Processors now use static properties.
2011-09-08 16:49:44 -04:00
Matthew Tretter
db4d704f71
Changed ImageSpec constructor so you can use static properties.
...
For example:
class MyImageSpec(ImageSpec):
quality = 100
class Photo(ImageModel):
display = MyImageSpec()
2011-09-08 16:48:53 -04:00
Matthew Tretter
0b0942921b
Updated README to reflect the new API.
2011-09-08 15:52:03 -04:00
Matthew Tretter
def8dea23f
Storage moved onto ImageSpec.
2011-09-08 10:28:54 -04:00
Matthew Tretter
e32ccb617d
Resize split into Crop and Fit.
2011-09-08 10:28:54 -04:00
Matthew Tretter
cd3395b68f
Processors are now instance-based.
2011-09-08 10:28:50 -04:00
Matthew Tretter
a9895f335a
Using spec properties from ImageModel.
2011-09-08 10:00:22 -04:00
Bryan Veloso
7dc8b9159e
Merge branch 'release/0.4.0' into develop
...
* release/0.4.0:
Think it's time to bump to 0.4.0.
2011-09-07 16:00:37 -07:00
Bryan Veloso
5a56327ba6
Merge branch 'release/0.4.0'
...
* release/0.4.0:
Think it's time to bump to 0.4.0.
Adding Markus and Matt to AUTHORS.
Added ability to specify specs in IKOptions directly.
Improve fault tolerance of Accessor._delete()
fix issue #12
proper python comments in readme
Adding Josh to the contributors list.
Being a good PyPI citizen.
allowing any fields on the object to be specified for use in naming of generated images; default to allowing pk
Added the pk of the object into the dictionary of values passed to the string formatting for cache_filename.
Added the quality property in the readme's ImageSpec classes just to show it is possible to change it at will.
Fixes: CMYK files from Photoshop fails to load with exception -2
2011-09-07 16:00:09 -07:00
Bryan Veloso
7cb59c7351
Think it's time to bump to 0.4.0.
2011-09-07 15:52:14 -07:00
Bryan Veloso
11e9064a19
Adding Markus and Matt to AUTHORS.
2011-09-07 15:45:06 -07:00
Bryan Veloso
5e447180dc
Merge pull request #27 from matthewwithanm/develop
...
Added ability to specify specs in IKOptions directly.
2011-09-07 15:43:24 -07:00
Matthew Tretter
2387cc4be2
Added ability to specify specs in IKOptions directly.
2011-09-02 23:35:58 -04:00
Bryan Veloso
14ef6633b9
Merge pull request #24 from mkai/develop
...
Minor improvement to fault tolerance of Accessor._delete()
2011-08-26 11:52:49 -07: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
Bryan Veloso
4a1d1d9715
Merge pull request #22 from Bers/patch-1
...
fix issue #12
2011-07-10 18:18:55 -07:00
Bers
aa348d76f6
fix issue #12
2011-07-04 04:09:31 -07:00
Bryan Veloso
2316646563
Merge pull request #21 from kennethreitz/patch-1
...
proper python comments in readme
2011-06-29 12:32:44 -07:00
Kenneth Reitz
9592edb186
proper python comments in readme
2011-06-29 07:30:51 -07:00
Bryan Veloso
d1e1e67d4f
Adding Josh to the contributors list.
2011-06-28 11:40:29 -07:00
Bryan Veloso
4f904cda87
Being a good PyPI citizen.
2011-06-28 11:38:42 -07:00
Greg Newman
5ba04d0976
Merge pull request #20 from joshourisman/develop
...
Allow any field on the model to be used in the name of the generated images.
2011-06-28 11:33:23 -07:00
Greg Newman
db142eb23f
Merge pull request #19 from joshourisman/develop
...
Allow the PK of an object to be used in the filename of images generated.
2011-06-28 11:27:56 -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
Bryan Veloso
1f882d6fa6
Merge pull request #18 from bchhun/develop
...
Minor Readme file modification
2011-06-18 21:48:36 -07:00
Bernard Chhun
3bf844687d
Added the quality property in the readme's ImageSpec classes just to show it is possible to change it at will.
2011-06-18 15:55:00 -07:00
Bryan Veloso
25f628de93
Merge pull request #17 from Shanto/develop
...
Fixes: CMYK files from Photoshop fails to load with exception -2
2011-06-17 13:50:44 -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
be28b0dffe
Merge branch 'release/0.3.6' into develop
...
* release/0.3.6:
Bumping the verison numbers.
2011-04-01 11:59:27 -07:00
Bryan Veloso
098425a383
Merge branch 'release/0.3.6'
...
* release/0.3.6:
Bumping the verison numbers.
Whitespacing.
Adding Jonathan Slenders to AUTHORS (thanks for spotting that signals bug).
fixed 'sender' not defined bug (2)
fixed 'sender' not defined bug
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-04-01 11:59:04 -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
Bryan Veloso
c61a6bc640
Adding Jonathan Slenders to AUTHORS (thanks for spotting that signals bug).
2011-03-26 00:42:37 -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
ede86f7faa
Merge branch 'release/0.3.5' into develop
...
* release/0.3.5:
One really should be able to add multiple maintainers.
Bumping the version number.
2011-02-12 14:05:34 -08:00
Bryan Veloso
ca7c3d9a97
Merge branch 'release/0.3.5'
...
* release/0.3.5:
One really should be able to add multiple maintainers.
Bumping the version number.
Accessor._delete() and Accessor._exists() needed conditionalizing as well. ikflush was yelling at me.
2011-02-12 14:05:23 -08:00
Bryan Veloso
9fa53856dc
One really should be able to add multiple maintainers.
2011-02-12 14:05:15 -08:00