Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -108,8 +108,8 @@ if uploaded_file is not None:
|
|
| 108 |
# Calculate centered position for the image at the bottom (1 inch from the bottom)
|
| 109 |
img_width = Inches(5)
|
| 110 |
img_height = Inches(5)
|
| 111 |
-
img_left = int((prs.slide_width - img_width)
|
| 112 |
-
img_top = int(
|
| 113 |
|
| 114 |
# Add the image to the slide
|
| 115 |
pic = slide.shapes.add_picture(temp_img_path, img_left, img_top, img_width, img_height)
|
|
|
|
| 108 |
# Calculate centered position for the image at the bottom (1 inch from the bottom)
|
| 109 |
img_width = Inches(5)
|
| 110 |
img_height = Inches(5)
|
| 111 |
+
img_left = int((prs.slide_width - img_width) / 2)
|
| 112 |
+
img_top = int(prs.slide_height - img_height - Inches(1))
|
| 113 |
|
| 114 |
# Add the image to the slide
|
| 115 |
pic = slide.shapes.add_picture(temp_img_path, img_left, img_top, img_width, img_height)
|