Back up your library
Before following any of these steps, it's a good idea to create a backup of your photo library, even if you use iCloud Photos. You can use Time Machine, use a third-party backup solution, or copy the library to an external drive. By default, your photo library is stored in the Pictures folder within your home folder.
Make sure that your software is up to date
Photos is part of the Mac operating system. You can avoid or fix many issues by running the most up-to-date version of macOS. Learn more about updating the software on your Mac.

2019-8-15 If you are asking questions like how to fix corrupted photos on Mac or how to get lost photos back, this article will be helpful to you. Here you can find guide and tips for repairing corrupted JPEGs and other image files. In addition, the article will also walk you through how to repair Photos library on Mac. If you receive a “macOS needs to repair your library to run applications” error when trying to open specific programs, there might be something wrong with it. Thus, you should try to repair the program: Hold down Option and Command keys when opening the app. Click Repair button in the appeared pop-up window. Jun 23, 2015 How to repair the Photos library in Mac OS X Yosemite. Once you've done that, follow these steps to recover your Photos library: 1. If opened, close the Photos app. Relaunch the Photos app. That’s our first look at the Photos app included with macOS Catalina, but it won’t be our last. You can look forward to future guides that look at Photos and other image library apps to help you manage your ever-increasing collection of exciting images, and the not-so-exciting ones, too. Reinstalling Mac helps to resolve Repairing library problem. Solution 3: Repair Photos Library in Photos App for Mac OS X Before going to repair the photo library use backup method to restore the photos. Step 1: Close the Photos app on the Mac.
If you use RAW images in Photos, learn more about the digital camera RAW formats supported by iOS, iPadOS, and macOS.
If you have trouble migrating an existing iPhoto or Aperture library to Photos
You might see an alert message when you first open Photos or migrate an existing iPhoto or Aperture library. Learn what to do if Photos can’t copy or create a library.
If the Media Browser isn't showing your photos and videos
Use the Media Browser to make images from your photo library available in other apps, like Pages and iMovie. The Media Browser shows only the contents of the Photos library designated as the System Photo Library. If you have more than one Photos library—and the one you're using isn't set as the System Photo Library—the Media Browser won't show its contents.
Follow these steps to designate the current library as the System Photo Library:
- Choose Photos > Preferences.
- Click the General button at the top of the Preferences window.
- Click Use as System Photo Library.
If you're having other issues with Photos
If you're experiencing other issues—like missing or blank photo thumbnails, unexpected behavior, or if Photos won’t open—try to see if it's an issue with your library by following these steps.
Create a new Photos library and see if your issues persist:
- Quit Photos.
- Press and hold the Option key while you open Photos.
- In the dialog that appears, click Create New.
- Give your new library a name, then click OK. Note whether Photos opens successfully with this new library.
To return to your main Photos library, quit Photos. Then open it again while holding the Option key, select your main library, and click Choose Library.
Alternatively, you can open Photos in another user account on your Mac and note whether Photos opens successfully.
Mac Photos App Stuck At 99 Repairing Library Database

If Photos opens with the new library, or in a different user account, it might mean that there's an issue with your library. Follow the steps to use the Photos library repair tool on your main Photos library.
Learn more
Mac Photos App Stuck At 99 Repairing Library Stuck
- Learn how to create and order print products like books or calendars in Photos with Project Extensions.
- Get help with iCloud Photos.