Esmaill1 commited on
Commit ·
1979f00
1
Parent(s): fb56418
Fix SyntaxError in layout_engine.py
Browse files- core/layout_engine.py +3 -2
core/layout_engine.py
CHANGED
|
@@ -308,8 +308,9 @@ def generate_layout(input_image: Image.Image, person_name: str = "", id_number:
|
|
| 308 |
|
| 309 |
lav_w = brand_w - 2*S["layout"]["brand_border"]
|
| 310 |
lav_h = OUTPUT_HEIGHT - 2*S["layout"]["brand_border"] - S["layout"]["large_photo_bottom_pad"]
|
| 311 |
-
large_raw = _resize_to_fit(img, lav_w, lav_h)
|
| 312 |
-
|
|
|
|
| 313 |
px = bx + (brand_w - lw)//2
|
| 314 |
py = S["layout"]["brand_border"] + (lav_h - lh)//2
|
| 315 |
|
|
|
|
| 308 |
|
| 309 |
lav_w = brand_w - 2*S["layout"]["brand_border"]
|
| 310 |
lav_h = OUTPUT_HEIGHT - 2*S["layout"]["brand_border"] - S["layout"]["large_photo_bottom_pad"]
|
| 311 |
+
large_raw = _resize_to_fit(img, lav_w, lav_h)
|
| 312 |
+
large = _add_inner_stroke(large_raw, color=(210, 210, 210), width=S["layout"]["photo_stroke_width"])
|
| 313 |
+
lw, lh = large.size
|
| 314 |
px = bx + (brand_w - lw)//2
|
| 315 |
py = S["layout"]["brand_border"] + (lav_h - lh)//2
|
| 316 |
|