views:

100

answers:

3

I'm creating a "slideshow room" web page. The user will upload a PowerPoint file that my server will use to generate a set of .jpg image files representing the slides to present in a custom "gallery viewer".

I'm an experienced Python developer but I cannot find anything useful.

How can I do that?

+2  A: 
BlairHippo
+1 for ImageMagick. I'd use PythonMagick (http://wiki.python.org/moin/PythonMagick) (Python bindings on top of the imagemagick API) instead of CLI.
ChristopheD
+1  A: 

Are you doing this on Windows? If so win32 com:

import win32com.client
Application = win32com.client.Dispatch("PowerPoint.Application")
Application.Visible = True
Presentation = Application.Presentations.Open(pathToPPT)
Presentation.Slides[1].Export("C:/path/to/jpg.jpg", "JPG", 800, 600);
etc...
Mark
Not downvoting, but doesn't this require you to install PowerPoint onto your webserver? Seems like a heavy dependency to me (and effectively locking you into Windows as a platform; although you already sort of mentioned that).
ChristopheD
@ChirstopheD, yes it would require PowerPoint. Really anything you do though is going to require an application that understands powerpoint PPT files. BlairHippo's solution above mine requires OpenOffice, equally heavy.
Mark
A: 

Apache POI and Jython. POI, even has an ImageExtractor class, but having just glanced at the Javadocs, I suspect it is incomplete.

mikerobi