dipta007 commited on
Commit
34ead5f
1 Parent(s): 8d37eb3

updated pil antialias

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -6,7 +6,7 @@ import base64
6
  # Convert Image to Base64
7
  def im_2_b64(image):
8
  image = Image.open(image)
9
- image.thumbnail((512, 512), Image.ANTIALIAS)
10
  image = image.convert("RGB")
11
  buff = BytesIO()
12
  image.save(buff, format="JPEG")
 
6
  # Convert Image to Base64
7
  def im_2_b64(image):
8
  image = Image.open(image)
9
+ image.thumbnail((512, 512), Image.Resampling.LANCZOS)
10
  image = image.convert("RGB")
11
  buff = BytesIO()
12
  image.save(buff, format="JPEG")