Skip to content

Output dimensions in pixels #3

@JonnyTech

Description

@JonnyTech

How can I set the output resolution in pixels? The current code has this:

	# Set slide dimensions
	prs.slide_height = height * 9525
	prs.slide_width = width * 9525

	# Add slide
	slide = prs.slides.add_slide(blank_slide_layout)
	pic = slide.shapes.add_picture(imagefile, 0, 0, width=width * 9525, height=height * 9525)

There is multiplier of 9525 but I want to fix the output to 1920x1080px. What units does the number relate to and can a pixel value be set?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions