Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Repair Corrupted Photos on Mac: 7 Fixes That Work

· 6 min read · Home Tech

In this article
  1. Why Photos Get Corrupted on a Mac
  2. Before You Try Anything: Back Up the Corrupted File
  3. Fix 1: Open in Preview and Force a Re-Render
  4. Fix 2: Use the Photos App to Import and Repair
  5. Fix 3: Use a Dedicated Photo Repair Tool
  6. Fix 4: Repair the Underlying Disk with First Aid
  7. How to Choose a Repair Method
  8. Common Mistakes That Make Corruption Worse
  9. Frequently Asked Questions

If your Mac won't open a photo or shows a gray, green, or pixelated image, the file is likely corrupted. You can repair many corrupted photos on a Mac by using the built-in Preview app, Photos app, or a dedicated recovery tool—but the method that works depends on how badly the file is damaged. This guide covers the practical fixes, from simple app tricks to file-repair software, so you can recover your images without sending them to a lab.

Why Photos Get Corrupted on a Mac

Photo files become corrupted for a handful of common reasons. Understanding the cause helps you pick the right repair method and avoid repeating the mistake.

  • Interrupted transfers: Copying photos from a camera, SD card, or phone and yanking the cable mid-transfer is the #1 cause of corruption.
  • Disk errors: A failing hard drive or a sudden power loss can write partial data to a file.
  • Software crashes: If an editing app (Photos, Lightroom, Pixelmator) crashes while saving, the file can be left incomplete.
  • Virus or malware: Rare on macOS, but some malware deliberately corrupts image files.
  • Cloud sync glitches: iCloud Photos or Dropbox sometimes sync a truncated version when the network drops mid-upload.

Note that a photo that looks "corrupted" in the Finder but opens fine in another app might just have a broken thumbnail or a missing file extension—not true corruption.

Before You Try Anything: Back Up the Corrupted File

This is the most important step. If you attempt a repair and the software overwrites the file, you may lose the original permanently. Copy the corrupted photo to a separate folder or an external drive first. Then work on the copy, never the original. If a repair tool fails, you still have the original to try another method—or to send to a professional recovery service later.

Fix 1: Open in Preview and Force a Re-Render

Preview, the built-in image viewer, can sometimes repair a mildly corrupted file simply by re-reading it. This works for files where the header is intact but the image data is slightly off.

  1. Right-click the photo and choose Open With > Preview.
  2. If it opens but looks wrong, go to File > Export and export it as a new file (JPEG, PNG, or TIFF). This forces Preview to re-encode the image data.
  3. If Preview refuses to open it, try dragging the file directly onto the Preview icon in the Dock. Sometimes that bypasses a file-type detection issue.

If Preview says "The file could not be opened" or shows a blank window, the corruption is deeper, and you'll need one of the next fixes.

Fix 2: Use the Photos App to Import and Repair

The Photos app is more tolerant of damaged files than Preview because it re-encodes images when it imports them. This can salvage a photo that Preview rejects.

  1. Open the Photos app.
  2. Go to File > Import and select the corrupted file.
  3. If it imports (even with a warning), the app will create a new copy in its library. Right-click the imported photo and choose Export to save a repaired version.
  4. If import fails, try renaming the file extension first (e.g., .jpg to .jpeg or .png) and import again.

This method works best for JPEGs and PNGs with minor header damage. It won't fix severe data loss where large chunks of the image are missing.

Fix 3: Use a Dedicated Photo Repair Tool

When Preview and Photos fail, you need software designed to rebuild corrupted image files. These tools analyze the file structure, reconstruct the header, and fill in missing data. Popular options include Stellar Photo Recovery, Disk Drill, and PhotoRec (free and open-source). Here's the general workflow:

  1. Download and install the tool. For free tools like PhotoRec, you'll need to run it from the Terminal—it's command-line only.
  2. Open the tool and select the folder or drive containing the corrupted photo.
  3. Choose a destination folder for the repaired file. Do not save to the same drive you're recovering from.
  4. Run the scan. The tool will identify the file type and attempt to rebuild it.
  5. Preview the result. Most paid tools offer a free trial that lets you see whether the repair worked before you pay.

These tools are not magic—if the file is 90% zeros, no software can recreate the missing pixels. But for header corruption or partial overwrites, they often succeed.

Fix 4: Repair the Underlying Disk with First Aid

Sometimes the photo isn't corrupted—the disk it's on is. If you notice multiple files failing to open, run Disk Utility's First Aid to repair the volume's file system.

  1. Open Disk Utility (in /Applications/Utilities).
  2. Select the drive or volume containing the photos.
  3. Click First Aid and then Run.
  4. Let it complete. It will report any errors it found and fixed.

First Aid can fix directory corruption that makes files appear unreadable. After running it, try opening the photo again. This is a safe, non-destructive process, but it's still wise to have a backup.

How to Choose a Repair Method

Not every corrupted photo needs the same treatment. Here's a quick decision guide:

  • Photo opens but looks wrong (green/pink/gray): Try Preview export first—it's free and often works.
  • Photo won't open at all: Try Photos import, then a dedicated tool.
  • Multiple photos fail: Run Disk Utility First Aid—it's a disk issue.
  • Photo is from a memory card: Use a recovery tool that reads raw card data, like PhotoRec.
  • Photo is extremely important: If free methods fail, consider a paid tool or professional service. Don't keep overwriting the original.

Common Mistakes That Make Corruption Worse

A few well-intentioned actions can permanently destroy a recoverable photo:

  • Opening and re-saving in an editor: If the file is damaged, re-saving it in Preview or Photoshop can overwrite the original data with a broken version.
  • Copying over the original: Always work on a copy.
  • Using the same drive for recovery: Writing repaired files to the same disk can overwrite the very sectors you need to recover.
  • Ignoring disk errors: If your drive is failing, every read/write operation can cause more damage. Back up everything immediately.

Frequently Asked Questions

Can I repair a corrupted JPEG on Mac for free?

Yes. Start with Preview's export trick and the Photos app import—both are free and built into macOS. For more severe corruption, PhotoRec is a free, open-source tool that can recover JPEGs, PNGs, and many other formats, though it requires using the Terminal.

Why does my photo show a gray thumbnail but won't open?

That usually means the file's header (the part that tells the system it's an image) is damaged, but the actual pixel data might still be intact. A repair tool that rebuilds the header, like Stellar or Disk Drill, can often fix this. The gray thumbnail itself is just a cached preview, not the actual image.

Will repairing a photo reduce its quality?

It depends on the method. Exporting from Preview or Photos re-encodes the image, which can slightly reduce quality if you choose a lossy format like JPEG. Repair tools that rebuild the original file structure usually preserve the original quality. Always export as TIFF or PNG if you want lossless output.

Can I recover a corrupted photo from an SD card on a Mac?

Yes. Stop using the card immediately—don't take new photos or delete anything. Connect it to your Mac and use a recovery tool like PhotoRec or Disk Drill to scan the card directly. The longer you use the card, the higher the chance the corrupted file's data gets overwritten.

Is there a way to prevent photo corruption in the future?

Always eject drives properly, use a UPS for your Mac to avoid power loss, keep your macOS and apps updated, and store photos in iCloud or another cloud service with versioning. Most importantly, maintain a regular backup (Time Machine or an external drive) so a corrupted file is never your only copy.