mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-17 05:40:25 +00:00
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!
This commit is contained in:
parent
6dd0d2272f
commit
1ffc8ca81e
1 changed files with 1 additions and 8 deletions
|
|
@ -1,5 +1,5 @@
|
|||
from imagekit.lib import Image
|
||||
from .crop import Crop as _Crop, SmartCrop as _SmartCrop
|
||||
from .crop import SmartCrop as _SmartCrop
|
||||
import warnings
|
||||
|
||||
|
||||
|
|
@ -128,13 +128,6 @@ class Fit(object):
|
|||
return img
|
||||
|
||||
|
||||
class Crop(_Crop):
|
||||
def __init__(self, *args, **kwargs):
|
||||
warnings.warn('The Crop processor has been moved to'
|
||||
' `imagekit.processors.crop.Crop`, where it belongs.',
|
||||
DeprecationWarning)
|
||||
super(SmartCrop, self).__init__(*args, **kwargs)
|
||||
|
||||
class SmartCrop(_SmartCrop):
|
||||
def __init__(self, *args, **kwargs):
|
||||
warnings.warn('The SmartCrop processor has been moved to'
|
||||
|
|
|
|||
Loading…
Reference in a new issue