Skip to content

Commit 55e1644

Browse files
committed
round width and height instead of flooring
1 parent 49239fe commit 55e1644

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

finder/contrib/image/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ def get_thumbnail_path(self, width, height):
4646
thumbnail_path_template = '{stem}__{width}x{height}__{crop_x}_{crop_y}_{crop_size}{gravity}{suffix}'
4747
return thumbnail_folder / thumbnail_path_template.format(
4848
stem=thumbnail_path.stem,
49-
width=int(width),
50-
height=int(height),
49+
width=round(width),
50+
height=round(height),
5151
crop_x=crop_x,
5252
crop_y=crop_y,
5353
crop_size=crop_size,

0 commit comments

Comments
 (0)