Skip to content

Commit 137caea

Browse files
committed
deactivate check for image size when thumbnailing
1 parent fa66bff commit 137caea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

finder/contrib/image/models.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ def get_cropped_filename(self, width, height):
7979

8080
def compute_crop_box(self, orig_width, orig_height, out_width, out_height):
8181
aspect_ratio = out_width / out_height
82-
assert out_width <= orig_width and out_height <= orig_height, (
83-
"The requested thumbnail size ({2}x{3}) is larger than the original image "
84-
"({0}x{1})".format(orig_width, orig_height, out_width, out_height)
85-
)
82+
# assert out_width <= orig_width and out_height <= orig_height, (
83+
# "The requested thumbnail size ({2}x{3}) is larger than the original image "
84+
# "({0}x{1})".format(orig_width, orig_height, out_width, out_height)
85+
# )
8686
orig_aspect_ratio = orig_width / orig_height
8787
crop_x, crop_y, crop_size, gravity = (
8888
self.meta_data.get('crop_x'),

0 commit comments

Comments
 (0)