Renamed smartcropping to feature detection

pull/487/head
Karl Hobley 2014-07-22 17:40:08 +01:00
rodzic 3de4bc3a24
commit 88f1b24fcc
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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.")