Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Create Keynote or PowerPoint slides from image folder Apps
I was looking for a way to do what should be a very simple thing: create a presentation from a folder or selection of images, with a separate image on each slide in full size. However, it seems that neither Keynote or PowerPoint can do this natively.

I found a few things that were supposed to work, such as this VBA script for PowerPoint that's supposed to do such a thing, but couldn't get it to run, probably because of path translation problems from Windows.

There's also a Keynote AppleScript (download), which is supposed to convert an iPhoto Album to slides, but I can't get it to run. It seems to reference a property in the script that neither my Keynote 2 or Keynote 3 seems to have in its script library, even when I install WiredFlux's Keynote Scripting Plugin.

So I had to make my own for both. For Keynote, I created an Automator application (136KB download, macosxhints mirror) which allows you to select a folder or files, and it will resize them to 800x600 and stick them in the frontmost presentation. I had to use Automator, since the make image slides function didn't seem to work in Applescript. If you have larger resolution presentations, you will have to change the size in the Automator workflow.

For PowerPoint, I was able to do it with a combination of AppleScript and Visual Basic in this script, which resizes the images to their maximum size for the slide, and then assigns the notes to be the image file name. I can't seem to get the slide title to set correctly, so if anyone can figure that out, let us know. Paste this into Script Editor and run with an open blank presentation in PowerPoint.

[robg adds: For the Keynote/Automator script, you need to also open a blank Keynote presentation first. When I first ran the action, it created a temp folder on the desktop, then quit. I ran it from Automator directly, and it was dying on step 4, which tries to select the temporary folder. I just had to re-point step 4 (along with step 7, which trashes the temp folder when done) to the now-in-existence temp folder, and then it worked fine.]
    •    
  • Currently 1.86 / 5
  You rated: 1 / 5 (7 votes cast)
 
[24,566 views]  

Create Keynote or PowerPoint slides from image folder | 12 comments | Create New Account
Click here to return to the 'Create Keynote or PowerPoint slides from image folder' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Can already do this in Keynote
Authored by: hobeaux on Mar 09, '06 08:10:01AM

Actually, creating slides from folders in Keynote is really easy and it works in Keynote 2 and Keynote 3:

1. In Keynote create a new presentation
2. Go to your folder, select all
3. Drag all the images from the folder to the Slide Navigator where you want the images to go

Keynote will create a new slide per file you import (this should work for audio files, images, PDFs, movies...



[ Reply to This | # ]
Can already do this in Keynote
Authored by: placain on Mar 09, '06 09:46:43AM

Wow. You have no idea ... I needed this exact thing (for Powerpoint), I took a ten minute break, I checked my bloglines, and there it was!



[ Reply to This | # ]
Create Keynote or PowerPoint slides from image folder
Authored by: ephramz on Mar 09, '06 09:03:23PM

Hobeaux, thanks for pointing out the built in feature in Keynote 2 and 3. I had no idea about that as it doesn't seem to be documented in Keynote's help, and I swore I tried that and it didn't work. Maybe I just tried dragging images to the keynote application icon which it couldn't open, not the slide list.

The only problem with this is that it doesn't scale images to fit completely in the slide, but rather scales up their smallest dimension to fit the slide, and it doesn't include titles like the automator script does. It's nice to know what a slide is about without having to jump to it in the outline. That's why the file names help a little bit.

Rob, thanks for pointing out that you need to start with an open presentation. Forgot about that!



[ Reply to This | # ]
Create Keynote or PowerPoint slides from image folder
Authored by: paulsaints on Mar 10, '06 12:47:42AM

Thanks for finding the Keynote direct way - it's a pity the photos don't go to the edge but you can change the background colour to black (or anything else) and that reduces the effect of the otherwise white border.



[ Reply to This | # ]
Create Keynote or PowerPoint slides from image folder
Authored by: Aet on Oct 24, '07 08:50:41PM

The download link no longer works for the Automator application you put together. Even now, so many months after this issue was noticed, Automator still doesn't allow a way to batch import images to new slides with a resize capacity that makes the image scale to fit entirely within the slide, rather than crop off the oversized dimension.

Any chance you could put the app back up for DL?



[ Reply to This | # ]
Create Keynote or PowerPoint slides from image folder
Authored by: Aet on Oct 24, '07 08:52:00PM

Ack, nevermind! The original link doesn't work, but the mirror is still up.
Many thanks.



[ Reply to This | # ]
Create Keynote or PowerPoint slides from image folder
Authored by: jonn8n on Mar 10, '06 06:33:42AM
This is based on a script I posted over 2 years ago.

Jon

[ Reply to This | # ]
Create Keynote or PowerPoint slides from image folder
Authored by: ephramz on Mar 10, '06 06:48:56AM

Ah, Jon, so sorry for not crediting your applescript/VBA code which I clearly used for this. I wouldn't have been able to do any of this without your code. Maybe with your mad VBA skillz (as the kids say these days) you might know how to actually set the title of a PowerPoint slide using VBA.



[ Reply to This | # ]
Create Keynote or PowerPoint slides from image folder
Authored by: ephramz on Mar 13, '06 02:54:20PM
Thanks a million to Jon who seems to be a VBA/Applscript pro and sent me this update (BatchImportPPImages.zip) to the above script in which he has figured out how to actually set the title of the slide with the name of the image file. This apparently requires some convoluted TextFrame.TextRange actions in VBA, but it works! Thanks again, Jon!

[ Reply to This | # ]
Create PowerPoint slides from image folder
Authored by: polacco on May 21, '07 03:44:25AM
--one year after last reply...i hope someone still can help me!--
I ve tried the VBA/Applscript BatchImportPPT (Office2004,PPoint 11.3.5, OsX 10.4.9)on a folder with 4 jpgs: resulting a presentation with 5 slides, each one with the name of a single jpg, but no images . No error messages neither code bugs. I ve tried the command .AddPicture in the VisualBasic Editor of PPoint and it works.

[ Reply to This | # ]
Create Keynote or PowerPoint slides from image folder
Authored by: tmoldovan on Mar 28, '06 07:05:23AM

Have you tested the Powerpoint script with Powerpoint 2004? It's not working for me.



[ Reply to This | # ]
Ooops, I spoke prematurely
Authored by: tmoldovan on Mar 28, '06 07:21:21AM

It does work, I had some problematic .jpges.



[ Reply to This | # ]