From 88f1b24fcc5be4eb3e943bb1d158c5ad16dcfc29 Mon Sep 17 00:00:00 2001 From: Karl Hobley Date: Tue, 22 Jul 2014 17:40:08 +0100 Subject: [PATCH] Renamed smartcropping to feature detection --- wagtail/wagtailimages/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wagtail/wagtailimages/models.py b/wagtail/wagtailimages/models.py index 054990250d..9242bc7d8b 100644 --- a/wagtail/wagtailimages/models.py +++ b/wagtail/wagtailimages/models.py @@ -182,8 +182,8 @@ class Image(AbstractImage): # Do smartcropping calculations when user saves an image without a focal point @receiver(pre_save, sender=Image) -def image_smartcrop(sender, instance, **kwargs): - if getattr(settings, 'WAGTAIL_SMARTCROP_ENABLED', False): +def image_feature_detection(sender, instance, **kwargs): + if getattr(settings, 'WAGTAIL_FEATURE_DETECTION_ENABLED', False): if not opencv_available: raise ImproperlyConfigured("pyOpenCV could not be found.")