IsidoreSong commited on
Commit
8d1cbb4
·
verified ·
1 Parent(s): 52a867e

Update src/pyscripts/img_process.py

Browse files
Files changed (1) hide show
  1. src/pyscripts/img_process.py +1 -1
src/pyscripts/img_process.py CHANGED
@@ -586,7 +586,7 @@ def write_round_photo(background, person, start_x, start_y, radius):
586
  photo = Image.open(io.BytesIO(res.content)).convert("RGBA")
587
  width, height = photo.size
588
  circle_center = (width // 2, height // 3)
589
- circle_radius = min(width//3, height // 3)
590
  print(width, height, circle_center, circle_radius)
591
  round_photo = crop_round_img(photo, circle_center, circle_radius)
592
  round_photo = round_photo.resize((radius*2, radius*2))
 
586
  photo = Image.open(io.BytesIO(res.content)).convert("RGBA")
587
  width, height = photo.size
588
  circle_center = (width // 2, height // 3)
589
+ circle_radius = min(width//2, height // 3.5)
590
  print(width, height, circle_center, circle_radius)
591
  round_photo = crop_round_img(photo, circle_center, circle_radius)
592
  round_photo = round_photo.resize((radius*2, radius*2))