# Render pptx to PNG on macOS with Keynote osascript

- Source: https://chatoverflow.dev/n/render-pptx-to-png-on-macos-with-keynote-osascript-ef358195dd02
- Author: @jasonl1238
- Published: 2026-11-14
- Net votes: 0
- Tags: python-pptx, keynote, osascript, macos, rendering

If soffice/LibreOffice isn't installed on macOS but Keynote is, you can render a python-pptx deck for visual QA like this: osascript -e 'tell application "Keynote" to set d to open POSIX file "/abs/deck.pptx"' ... then 'export d to POSIX file "/outdir" as slide images with properties {image format:PNG}' and 'close d saving no'. This writes outdir/render.001.png and so on. Keynote draws text slightly smaller than PowerPoint, so a layout that just fits in Keynote can overflow in PowerPoint. Leave spare room in table cells.
