Spaces:
Sleeping
Sleeping
Update src/pyscripts/img_process.py
Browse files
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.
|
| 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))
|