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

Update src/pyscripts/img_process.py

Browse files
Files changed (1) hide show
  1. src/pyscripts/img_process.py +2 -2
src/pyscripts/img_process.py CHANGED
@@ -585,8 +585,8 @@ def write_round_photo(background, person, start_x, start_y, radius):
585
  res = requests.get(person["photo_link"])
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))
 
585
  res = requests.get(person["photo_link"])
586
  photo = Image.open(io.BytesIO(res.content)).convert("RGBA")
587
  width, height = photo.size
588
+ circle_center = (width // 2, height // 3.75)
589
+ circle_radius = min(width//2, height // 3.75)
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))