Remove redundant parentheses.

This commit is contained in:
codezjx 2018-09-27 12:58:49 +08:00
parent 0bc5738bba
commit b986432b04
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ def resize_img(file_path, max_size=(640, 640), quality=90):
if img.size[0] > max_size[0] or img.size[1] > max_size[1]:
img.thumbnail(max_size, Image.ANTIALIAS)
if (img.format == 'PNG'):
if img.format == 'PNG':
img = img.convert('RGB')
img.save(file_path, quality=quality)