I try to make pptx file to python. Main task is load many picture(.tif .jpg) in pptx.
Here is code
prs = Presentation()
current_slide = prs.slides.add_slide(prs.slide_layouts[0])
pic = current_slide.shapes.add_picture(img_path, Inches(0),Inches(1),Inches(10),Inches(5))
prs.save(self.output_dir + '/' + self.ppt_txt.get() + '.pptx')
The volume of original image is 1.2GB And pptx file's volume is 1GB made by python. but the volume of pptx created by drag and drop image is 10MB. What makes this difference?
How do i reduce the volume in the code?