|
|
@@ -13,6 +13,6 @@ def make_thumbnail(im_path, im_thumbnail_path=None, max_width=360):
|
13
|
13
|
width, height = im.size
|
14
|
14
|
thumb_width = min(max_width, width)
|
15
|
15
|
thumb_height = height / width * thumb_width
|
16
|
|
- im.thumbnail((thumb_width, thumb_height))
|
17
|
|
- im.save(im_thumbnail_path or im_path, im.format or 'JPEG')
|
|
16
|
+ im.thumbnail((thumb_width, thumb_height), Image.ANTIALIAS)
|
|
17
|
+ im.save(im_thumbnail_path or im_path, im.format or 'JPEG', quality=100)
|
18
|
18
|
return width, height, thumb_width, thumb_height
|