When every photo on the PC suddenly refuses to open, the culprit is almost always a broken default-app association, a corrupted thumbnail or icon cache, or a file index that has fallen out of sync — not lost pictures. The files are typically still on the drive. What changed is the handshake between the file and the program meant to display it. This guide walks through the diagnostic order that works on both Windows 11 (version 23H2 and later) and macOS (Sonoma 14 and later), starting with the cheapest check and ending with the recovery options that preserve your originals.
Why double-clicking a photo now does nothing
The most common reason a photo won't open is that Windows or macOS has lost track of which program owns that file extension. On Windows this happens after a major update, a new photo app install, or a registry cleaner run; on macOS it follows an app deletion or a permissions change in Finder. The file itself is fine — the operating system just has no default handler registered for .jpg, .heic, or .png.
A second cause is a stalled thumbnail cache. Windows 11 stores thumbnail data in a hidden database that can grow past 1 GB on a photo-heavy drive; when that file corrupts, Explorer may show blank icons and refuse to launch anything on double-click. Apple's equivalent is the Quick Look cache, which lives inside the user Library and rebuilds itself on restart, so a simple reboot clears more Mac photo-open failures than any other single action.
Third, check the drive itself. If photos live on an external USB or SD card and the reader has dropped offline mid-transfer, the OS will show files that exist in name only. A file that opens as 0 bytes in Preview or Photos is not a format problem; it's a storage problem. Copy one file to the desktop and try again — if the copy also fails, the source media needs recovery before anything else.
A fourth and often-missed cause is a permissions lock. macOS Sequoia and Sonoma require apps to request access to your Pictures folder the first time they touch it; if you clicked "Don't Allow" once, every photo in that folder will appear greyed out in the picker until you reverse it under System Settings > Privacy & Security > Files and Folders. Windows has an equivalent in Controlled Folder Access, which can silently block photo viewers from reading the Pictures library after a ransomware-protection toggle.
The 60-second triage: three checks before you change any settings
Run these three checks in order before touching a single setting, because each takes under 20 seconds and rules out the majority of false alarms.
1: Right-click one photo and choose Properties (Windows) or Get Info (macOS). Confirm the file size is above zero and the "Type" line names an image format, not "Unknown." 2: Open the same file from inside a known-good app — Photos on Windows, Preview on Mac — rather than by double-clicking. If it opens there, the file is healthy and only the association is broken. 3: Try a second file of a different extension. If .png opens but .heic doesn't, you've isolated the problem to one codec (HEIC support requires the HEIF Image Extension from the Microsoft Store on Windows 11).
If all three checks pass, skip to the default-app section. If any fails, go to the storage or permission section first. Doing the association reset before confirming file health wastes time and, worse, can make you believe files are corrupt when they aren't.
The triage matters because Windows 11's "Open with" dialog will happily offer to "always use this app" for a broken file — locking in a bad default for every photo on the drive. Confirm the file opens manually before you commit to any "always" choice.
Reset the default photo app on Windows 11
Setting the default photo handler back to Photos takes about 90 seconds and requires no registry editing. Follow the exact on-screen path below; the labels changed in the 22H2 update and many older tutorials still name the Windows 10 locations.
1: Press Windows key + I to open Settings. 2: Choose Apps, then Default apps. 3: Type ".jpg" into the "Set a default for a file type" search box at the bottom. 4: Click the current handler and pick Photos from the flyout. Repeat for .jpeg, .png, .heic, and .gif if you use those. 5: Close Settings and double-click a test photo.
If Photos is missing from the flyout, it has been uninstalled — reinstall it from the Microsoft Store by searching "Microsoft Photos" and clicking Get. The app is free and reinstalls in under a minute on a normal broadband connection.
Failure handling: if the flyout returns you to Settings with no change applied, the association is being blocked by a policy or a third-party "default app protector" such as the one bundled with some PDF and media suites. Disable that protector's default-app lock in its own settings, then repeat step 4. If Windows shows "This file type is locked," you're on a managed device and an administrator must release it through Group Policy — the setting lives under Computer Configuration > Administrative Templates > Windows Components > File Explorer.
A version-specific note: Windows 11 24H2 moved the file-type list behind a "Choose a default for a file type" link rather than showing it inline, so if you don't see the search box in step 3, click that link first. The association itself behaves identically.
Fix the Mac equivalent using Finder's Get Info panel
On macOS, the default photo handler is per-user and per-extension, set through Finder rather than System Settings. The path below matches Sonoma 14 and Sequoia 15; Ventura and earlier put the same controls in the same place but label the button "Change All" identically.
1: In Finder, select any .jpg file and press Command + I to open Get Info. 2: Expand "Open with" and choose Preview or Photos from the dropdown. 3: Click Change All… and confirm. macOS will apply the choice to every file of that type for your user account. 4: Repeat for .heic, .png, and .tiff inside their own Get Info panels — the Change All button only affects the exact extension shown.
If Preview is greyed out in the dropdown, the app has been removed from /System/Applications; reinstall macOS through Recovery or drag Preview back from a Time Machine snapshot. If the dropdown shows no apps at all, Launch Services has lost its database — rebuild it by running the terminal command /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user and restarting. That sequence is documented in Apple's developer support notes for Launch Services and takes roughly 90 seconds to run.
Edge case: photos stored in iCloud Drive but not downloaded locally will show a cloud icon and may not open until they've synced. Force a download by right-clicking the file and choosing "Download Now," or set the whole folder to "Keep Downloaded" in Finder's contextual menu. This trips up more people than file-association problems do, and the cloud icon is the giveaway.
Clear the thumbnail and icon cache when blank previews appear
If double-click does work but Explorer or Finder shows grey boxes instead of photo previews, the cache needs clearing. On Windows 11, the thumbnail database lives at %LocalAppData%\Microsoft\Windows\Explorer as files named thumbcache_*.db; a photo library of 20,000 images can push those files past 1.5 GB combined, and corruption is more likely at that size.
1: Close File Explorer completely (right-click the taskbar icon, choose Close). 2: Open Settings > System > Storage > Temporary files. 3: Check "Thumbnails" and click Remove files. 4: Restart the PC. Windows rebuilds a fresh cache on first folder browse.
That rebuild takes 10–40 seconds per large folder the first time you open it — don't assume the fix failed if previews trickle in slowly. On macOS, the equivalent action is sudo rm -rf ~/Library/Caches/com.apple.QuickLook.thumbnailcache in Terminal followed by a killall Finder command; both are reversible (the cache regenerates) and neither touches photo files.
Failure handling: if thumbnails remain blank after two cache clears, the disk is the suspect. Run chkdsk /f on Windows from an elevated Command Prompt (it needs a reboot to run) or Disk Utility's First Aid on Mac. Corrupted sectors produce exactly this symptom and no amount of cache rebuilding will fix them. Back up before running either tool.
A number worth knowing: Windows 11 caps the thumbnail cache at 1% of drive size by default. On a 512 GB drive that's a 5 GB ceiling — small on paper, but if your photo library exceeds it, older thumbnails evict constantly and the folder looks broken even when it isn't. The cap is configurable through the Group Policy setting "Maximum allowed size for thumbnail cache," which lives under User Configuration > Administrative Templates > Windows Components > File Explorer.
Repair corrupted or unreadable photos without destroying originals
When a file opens as a black square, a truncated strip, or an error dialog, the image data itself has damage. Windows and macOS both ship repair tools, but neither should ever be run against the only copy of a file.
| Tool | Platform | What it fixes | Cost | Original preserved? |
|---|---|---|---|---|
| Photos app "Fix" (Windows 11) | Windows | Mild JPEG header corruption | Free | Yes, saves a copy |
| Preview "Export as JPEG" | macOS | Colour-profile and metadata damage | Free | Yes, new file |
| chkdsk /f | Windows | Filesystem-level corruption on the volume | Free | Yes, files rewritten in place |
| Disk Utility First Aid | macOS | Volume directory damage | Free | Yes |
| Third-party recovery (exiftool restore) | Both | Missing EXIF headers | Free, command-line | Yes, metadata rebuilt |
For Windows users, the fastest route is to open the damaged file in Photos, press Edit, then Save a copy; the app silently rebuilds the JPEG header and writes a fresh file alongside the original. For macOS users, open in Preview, choose File > Export, and pick JPEG from the format dropdown — Preview rewrites the container and frequently rescues files that fail to open by double-click.
Edge case: HEIC files from an iPhone copied to a Windows drive often appear unreadable because Windows lacks the codec by default. Install the free "HEIF Image Extensions" package from the Microsoft Store (Hevc Video Extensions is a separate, paid package at $0.99 as of Microsoft's current store listing — check the Store page for current availability and price). Without both, HEIC photos from an iPhone 15 or later will not preview in Explorer even though Photos can open them once the extension is installed.
If neither tool rescues the file, stop using the drive and make a full image backup before attempting third-party recovery — every additional write to a failing disk reduces the odds of getting the photo back. That's a boundary worth stating plainly: repair tools are safe on healthy media and risky on failing media.
Check file permissions when photos exist but won't open
Both operating systems enforce per-user access at the file level, and a permission mismatch produces the odd symptom where photos are visible in the folder but every open attempt is denied. On Windows, right-click the folder, choose Properties > Security, and confirm your user account has Read & execute and Read permissions. If the list shows only SYSTEM and Administrators, you've inherited the folder from another machine or another user profile and need to take ownership via the Advanced > Owner > Change dialog.
On macOS, the Controls are in Get Info under Sharing & Permissions. If your user shows "No Access," unlock the padlock, set Read & Write, and click the gear menu to choose "Apply to enclosed items." That last step is what people miss — setting the parent folder alone doesn't cascade, and the enclosed-items command can take two minutes on a large library.
A wrinkle worth flagging: Windows 11's Controlled Folder Access protects the Pictures folder by default when enabled, blocking apps it doesn't recognise from reading files there. Photo viewers that aren't signed Microsoft apps can silently fail. Check under Windows Security > Virus & threat protection > Ransomware protection and either allow the specific app or temporarily disable the feature while you diagnose.
If permissions look correct and files still fail, check whether the photos live inside a OneDrive "Files On-Demand" placeholder folder — green checkmark icons mean the file has synced but the local copy doesn't exist yet. Right-click the folder and choose "Always keep on this device," and wait for the download to complete before testing again.
Rebuild the Windows photo index without losing albums
The Photos app keeps its own library index at %LocalAppData%\Packages\Microsoft.Windows.Photos_8wekyb3d8bbwe\LocalState, and that index can drift when files are moved outside the app. Symptoms include an empty Photos timeline, "file not found" errors for photos you can plainly see in Explorer, and albums that show zero items.
1: Close the Photos app entirely. 2: Open Settings > Apps > Installed apps > Microsoft Photos > Advanced options. 3: Click Repair first — it resets the index without touching your albums and takes about 30 seconds. 4: If Repair doesn't fix it, click Reset. This clears the index entirely and Photos rebuilds it on next launch by scanning the Pictures library, which can take 5–20 minutes depending on library size.
Reset deletes album definitions you created inside Photos but leaves files on disk untouched. If you have significant album curation, export album contents first via the app's own "Save a copy" option, or accept the loss of organisation as the trade for a working library.
macOS users have no equivalent single Photos reset that preserves albums; the recommended path is to hold Option while launching Photos, which prompts you to choose or create a new library. Selecting the existing library file is safe (it just re-opens it); selecting a new one and re-importing from the Pictures folder rebuilds everything from originals at the cost of losing edit history and album structure. Apple's own Photos user guide documents this behaviour.
Set a reliable fallback when the built-in app fails
Windows 11's Photos app has a known failure mode where it hangs on launch and never loads a file — you click, the window flashes, nothing appears. The fix isn't in Settings; it's in choosing a lighter default. IrfanView (free, Windows-only) opens a 40 MB JPEG in under half a second on a mid-range laptop and handles formats from .jpg to .raw without touching the Photos app at all.
Set IrfanView as the default through the same Settings > Default apps path described earlier, or via the app's own "Set as default viewer" option in its Options menu, which writes the association for every supported extension in one click. The trade-off: IrfanView has no album management, no cloud sync, and an interface that looks frozen in 2008. It's the right pick for someone who needs photos to open reliably and doesn't care about curation.
On Mac, Adobe's free Bridge (part of the Creative Cloud installer, no subscription required) serves the same fallback role and can browse a 50,000-image folder without building an index. Preview remains the fastest single-file viewer and is already installed on every Mac.
For readers who genuinely need organisation and reliability together, the answer isn't a third-party viewer — it's checking the built-in app's health first. A hanging Photos app on Windows almost always traces back to a corrupted package registration, which the Advanced options > Repair button resolves in the majority of cases reported on Microsoft's own support forums.
When photos are actually missing: recovery order that works
If files have vanished rather than merely refused to open, the recovery order matters more than the recovery tool. Check in this sequence.
1: Recycle Bin (Windows) or Trash (Mac) — deleted files sit there for 30 days by default on Windows, indefinitely on Mac until emptied. 2: OneDrive or iCloud "Recently Deleted" — cloud copies persist for 30 days after local deletion, and photos deleted on one device often survive on the other. 3: Windows File History or macOS Time Machine — both keep hourly snapshots if enabled; check the most recent before the loss. 4: Manufacturer recovery partition — Dell, HP, and Lenovo all ship recovery tools that can restore system files but won't touch user photos. 5: Professional recovery — for a failing drive, stop here and call a recovery service; software tools on dying media reduce the odds of success.
File History is off by default on Windows 11 and requires an external drive set up through Control Panel > File History. If it was never enabled, step 3 is a dead end. That's a fact many users discover too late — check now whether it's on rather than after the next loss.
For Mac users, Time Machine requires a dedicated external drive of at least twice the internal drive size. Apple's own support documentation states the 2× recommendation explicitly, and drives smaller than that will fail to complete a snapshot on a full system.
No recovery method is guaranteed. The honest framing: if a photo exists only on a failing drive, no software fix substitutes for stopping writes and seeking a professional. That's the boundary on recovery advice — everything before it assumes healthy hardware.
FAQ
Why do some .heic photos open and others don't on the same Windows PC?
The HEIF Image Extension and HEVC Video Extensions are separate packages, and a partial install will open some files but not others. Open Settings > Apps > Installed apps and confirm both are listed. If HEVC Video Extensions is missing, Microsoft's store lists it at $0.99 as of its current store entry — check the listing for current price and availability before purchasing. Files recorded in HDR HEIC from an iPhone 15 or later may still fail with extensions installed, because HDR HEIC requires Windows 11 build 22621.1778 or later, per Microsoft's release notes.
Does resetting the Photos app delete my pictures?
No. Reset clears the app's library index and any album structure you built inside Photos, but every image stays in its original folder on disk. The reset takes roughly 30 seconds and Photos re-scans the Pictures library on next launch, which can take 5–20 minutes for a large collection. Export album contents first if the curation matters to you.
How long does a Mac thumbnail cache rebuild take?
The first browse after clearing the Quick Look cache takes 10–40 seconds per folder, and a full library of 30,000 photos can take two to three minutes to re-index across all folders. Unlike Windows, macOS doesn't cap the cache at a percentage of drive size; it grows until the system reclaims space under memory pressure, which is why Mac caches fail less often than Windows ones.
Is it worth paying for a photo recovery app?
Rarely. The free tools — Recycle Bin, cloud recently-deleted, Time Machine, File History — recover the majority of accidentally deleted photos, and paid apps charge typically $30–80 for a single recovery run. The exception is a physically failing drive, where paid recovery service fees start around $300 and climb into four figures for clean-room work — a quote, not a guaranteed outcome. Verify any service's data-handling policy before shipping a drive.
Can a virus cause photos to stop opening?
It's possible but less common than the settings causes above. The pattern to watch for is photos changing extension (e.g., .jpg becoming .jpg.locked) or a ransom note appearing in each folder. If you see either, disconnect from the network, do not pay, and run Microsoft Defender's offline scan from Windows Security's Virus & threat protection page. A single-file association failure with no extension changes is almost never malware.
Why does Finder show my photos but Preview says they can't be opened?
This is usually a permissions lock from macOS's Files and Folders privacy control rather than a broken association. Open System Settings > Privacy & Security > Files and Folders and confirm Preview and Photos are both allowed to access the Pictures folder. If they are listed but greyed, toggle each off and back on, then relaunch the apps. The lock survives reboots until reversed here.
Do I need to change settings on every user account on a shared PC?
Yes. Windows and macOS both store file associations per user profile, so fixing the default photo app under your account leaves a second user's account untouched. Sign in to each profile and repeat the reset. On managed Windows machines, an administrator can push the association through a Group Policy default-apps XML file under Computer Configuration > Administrative Templates > Windows Components > File Explorer, applying it to every account at once.
This article is general educational information, not a diagnosis or repair guarantee. If photos exist only on a drive that's making clicking noises or failing to mount, stop using it and consult a qualified data-recovery professional in your region before running any tool. Nothing here promises recovery outcomes, and results depend on the state of the media at the moment you stop writing to it.