Convert Hundreds of JPG Photos to PowerPoint on Mac
Question details
Create a PowerPoint presentation from hundreds of JPG photos on a Mac.

- Product
- Microsoft PowerPoint for Mac
- Device & OS
- macOS
- Scenario
- The photos have been copied from a USB drive to the computer and need to be placed into a presentation in batches.
- Observed behavior
- PowerPoint for Mac does not include the Windows Photo Album utility.
Put the JPG files in a folder on your Mac and make sure PowerPoint can access them. The macro below creates one slide per image; photo order follows the file list generated by Terminal.
Create one PowerPoint slide per photo with a VBA macro
Use a file list and a macro to add many local JPG images to a new presentation.
This method uses Terminal to list JPG and JPEG files, including files in subfolders. The macro embeds each image and fits it within a blank slide without cropping.
Only run macros you trust. Mac security or file-access prompts may require you to grant PowerPoint permission to read the list and photos.
Open Terminal and type find followed by a space. Drag your photo folder into the Terminal window, then append this command and press Return: -type f \( -iname '*.jpg' -o -iname '*.jpeg' \) -print > "$HOME/Documents/jpg-album-list.txt". This creates a list in your Documents folder.
In Terminal, run echo "$HOME/Documents/jpg-album-list.txt" and copy the displayed path. You will paste it into the macro prompt.
Open PowerPoint, create a blank presentation, and choose Tools > Macro > Visual Basic Editor. In the editor, choose Insert > Module and paste this code: Sub PhotosToSlides() Dim listPath As String, photoPath As String Dim f As Integer Dim p As Presentation Dim s As Slide Dim pic As Shape Dim scaleFactor As Double listPath = InputBox("Paste the full path to the photo list:") If listPath = "" Then Exit Sub f = FreeFile Open listPath For Input As #f Set p = Presentations.Add Do While Not EOF(f) Line Input #f, photoPath If photoPath <> "" Then Set s = p.Slides.Add(p.Slides.Count + 1, ppLayoutBlank) Set pic = s.Shapes.AddPicture(photoPath, msoFalse, msoTrue, 0, 0) pic.LockAspectRatio = msoTrue scaleFactor = p.PageSetup.SlideWidth / pic.Width If pic.Height * scaleFactor > p.PageSetup.SlideHeight Then scaleFactor = p.PageSetup.SlideHeight / pic.Height End If pic.Width = pic.Width * scaleFactor pic.Left = (p.PageSetup.SlideWidth - pic.Width) / 2 pic.Top = (p.PageSetup.SlideHeight - pic.Height) / 2 End If Loop Close #f End Sub
In PowerPoint, choose Tools > Macro > Macros, select PhotosToSlides, and click Run. Paste the list path when prompted. Review the new presentation, then choose File > Save As and save it as a PowerPoint presentation (.pptx).

Edit photo presentations with WPS Presentation
WPS Office is a free, lightweight alternative with a familiar presentation interface. Open a PowerPoint file in WPS Presentation to review and edit photo slides as you migrate between office suites. It does not replace PowerPoint's Mac macro workflow described above.

Frequently Asked Questions
Does PowerPoint for Mac have the Windows Photo Album feature?
PowerPoint for Mac does not include the Windows Photo Album utility. A VBA macro can instead create slides from a list of local photo files.
Will the macro crop my photos?
No. It preserves each image's proportions and fits the whole image within the slide, so some empty space may remain.
Are the photos embedded in the presentation?
Yes. The macro inserts each picture with linking turned off and saves it with the presentation. Use File > Save As to save the generated deck.
Why might the macro stop before adding every photo?
PowerPoint may lack permission to read the list or an image, or a listed file may have moved or be unreadable. Check the file paths and any macOS access prompts, then run the macro again.




