Venelin Stoykov
1ac3399737
Deprecate imagekit.processors submodules
...
- `base`, `crop`, `resize`, and `utils` are now placed in `pilkit` app
- remove magic compatibility between `imagekit.processors` and `pilkit.procesors`
2014-09-28 18:31:33 +03:00
Matthew Tretter
36313194ac
Remove PILKit functionality
...
This commit removes the functionality now in the PILKit project, and
adds PILKit as a dependency. Import hooks have been used to expose the
processors under "imagekit.processors".
2013-02-07 23:10:05 -05:00
Matthew Tretter
43a1f49498
New thumbnail tag syntax! Closes #177
2013-01-09 00:25:08 -05:00
Matthew Tretter
c69c2d087e
Create Thumbnail spec; closes #175
2012-12-06 23:48:09 -05:00
Matthew Tretter
1fb1d83c56
Add Thumbnail processor
2012-12-06 23:22:02 -05:00
Matthew Tretter
aaa823afd6
Add flake8 linting
2012-11-05 23:34:32 -05:00
Matthew Tretter
c752eea6a0
Fix bug with black mat_color
2012-11-05 22:23:29 -05:00
Matthew Tretter
8fc71e689a
Cover renamed to ResizeToCover
2012-02-18 01:38:19 -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
Timothée Peignier
98066eea93
fix import and formatting
2012-02-14 17:34:51 +01:00
Matthew Tretter
cf821cfecd
Documentation
2012-02-11 15:40:16 -05:00
Matthew Tretter
15e0981835
Use BasicResize for resizing
2012-02-11 15:26:27 -05:00
Matthew Tretter
1a999f23da
@madisvain's BasicResize from #94
2012-02-11 15:25:10 -05:00
Matthew Tretter
57056c021d
Add SmartFill processor
...
The simplicity is what makes it so attractive.
2012-02-11 15:12:24 -05:00
Matthew Tretter
ce7353b0bd
Extract Cover processor from Fill
...
This will also be used by `SmartFill`, so we might as well centralize it.
2012-02-11 15:01:59 -05:00
Matthew Tretter
b4b64a4863
Avoid duplication of cropping code
...
`Fill` is just a resize followed by a crop, so we might as well make
use of the processors we already have.
2012-02-11 14:25:06 -05:00
Matthew Tretter
1ffc8ca81e
Remove duplicate resize.Crop
...
`resize.Crop` actually hasn't been moved to `crop.Crop` (as the removed
class claimed). In fact, what used to be called `resize.Crop` is now
`resize.Fill`. The confusion is understandable, since it's what
motivated the change in the first place!
2012-02-11 14:11:07 -05:00
Madis Väin
6dd0d2272f
write the processors talked about in issue #93
2012-02-11 13:50:12 -05:00
Matthew Tretter
2467dfe912
Rename resize.Crop to resize.Fill
2012-02-11 13:36:30 -05:00
Matthew Tretter
c2a4d01b7c
Only one return
2012-02-10 22:04:20 -05:00
Matthew Tretter
09b97ee62f
Move SmartCrop to crop module
...
Addresses one of the issues raised by in @madisvain in #93
2012-02-10 19:42:36 -05:00
Jan Sagemueller
a041302c96
Resize processor: Add mat_color option to enforce the targeted image size
2012-02-08 09:25:37 -05:00
Timothée Peignier
eb801d75f5
small pep8 formatting fix
2012-01-27 13:45:22 +01:00
Matthew Tretter
5ecdeb1209
Remove _Resize class
...
It once had a purpose, but it hasn't for a while.
2011-11-22 23:41:18 -05:00
FI$H 2000
7ce43309ad
Adds SmartCrop resize processor, with tests.
2011-11-10 10:54:58 -05:00
Bryan Veloso
06c1c678b6
PEP8-ing and whitespacing.
2011-10-31 23:12:03 +09:00
Bryan Veloso
6adadafc74
PEP8 and import tweaks.
2011-10-20 12:12:47 +09:00
Matthew Tretter
da00e2a5da
Moved Crop and Fit to resize module.
...
Crop doesn't necessarily imply the any scaling is taking place. Several
ideas were discussed, from renaming Crop to combining both processors
into a single Resize processor (as they were in the original IK), but
those solutions were felt to either precluded future extension
(alternative resize modes) or make the API too verbose.
2011-09-26 14:40:48 -04:00