Flo161 commited on
Commit
6452668
·
1 Parent(s): c994dc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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).inches / 2)
112
- img_top = int((prs.slide_height - img_height - Inches(1)).inches)
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)