Apply #797 to new image operations

pull/780/head
Karl Hobley 2014-12-03 17:20:03 +00:00 zatwierdzone przez Karl Hobley
rodzic 65d83174e0
commit 20e69a1ec8
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -56,7 +56,7 @@ class FillOperation(object):
crop_min_height = crop_min_scale / crop_aspect_ratio
# Sometimes, the focal point may be bigger than the image...
if not crop_min_scale > crop_max_scale:
if not crop_min_scale >= crop_max_scale:
# Calculate max crop closeness to prevent upscaling
max_crop_closeness = max(
1 - (self.width - crop_min_width) / (crop_max_width - crop_min_width),