NS_E_WMP_IMAGE_INVALID_FORMAT (0XC00D1023) fix — corrupt image in WMP
Windows Media Player can't read an image file because it's corrupt, truncated, or uses an unsupported codec. One fix: re-save the image from an editor.
What this error actually means
When you open an image in Windows Media Player (WMP) and get NS_E_WMP_IMAGE_INVALID_FORMAT (0xC00D1023), what's happening is that WMP tried to decode the image and hit something it couldn't parse. The error text says "Image file might be corrupt" — and that's usually right, but not always. Sometimes the image is fine in other apps, but WMP's decoder is pickier or older.
I've seen this most often on Windows 10 version 22H2 and Windows 11 23H2 when trying to play a slideshow from a folder full of JPEGs from a phone or DSLR. The error pops up on specific files, skips them, and continues. The real trigger? The image file got truncated during transfer, or it uses an encoding feature WMP doesn't support (like progressive JPEG with certain sub-sampling).
Cause #1: Truncated or partially-downloaded image file
This is the most common cause. If the image didn't finish transferring — say from a camera via USB that got yanked early, or downloaded from the web and the connection dropped — the file ends with a partial JPEG marker or PNG chunk. WMP reads the header OK but fails when it hits the missing data. Other viewers (like Photos or Chrome) are more forgiving; they just display what they can and stop. WMP bails out hard.
Fix: Re-save or re-download the image
- Open the image in something basic: Paint (Windows built-in), GIMP, or even the Photos app. Photos will often show the broken file partially.
- In Paint, go to File > Save As and save it as a PNG (or JPEG if you must, but PNG avoids recompression issues). This forces the app to re-encode the entire image, fixing the broken structure.
- If the image is completely unreadable (can't open in anything), the file is truly gone. Re-download or re-dump it from the source.
Why step 2 works: Paint reads the image using the system decoder (Windows Imaging Component), which fills in missing data with default values or skips corrupt sections. When it writes a new file, it creates a clean, valid image. WMP can then open it.
Cause #2: Unsupported image format or encoding
Windows Media Player on Windows 7 through 11 supports common formats: JPEG, PNG, BMP, GIF, TIFF (limited), and ICO. But it uses the same old DirectX/DirectShow decoders that shipped with Windows, not the newer Windows Imaging Component. So a JPEG with Adobe RGB color space or a PNG with an sRGB chunk that's malformed? WMP chokes. Progressive JPEGs with 4:2:0 chroma subsampling are also a known trigger — WMP can't handle the multiple scans properly.
Fix: Convert to a simpler format
- Use GIMP or IrfanView (free, lightweight) to batch-convert the image to a standard JPEG (baseline, not progressive) or PNG.
- In IrfanView: File > Batch Conversion → select files → set output format to JPEG - Save Options → uncheck "Save as progressive JPEG" → convert.
- If you're technical and want to check the format: run
exiftool -jfif image.jpgin PowerShell — if it errors, the file isn't standard JFIF/JPEG.
Why this matters: The image isn't corrupt; it's just that WMP's decoder is old and strict. GIMP or IrfanView write a clean baseline JPEG that every player under the sun can read.
Cause #3: Corrupted Windows Media Player codec cache
Less common but real: the codec registry entries that WMP uses to identify image decoders get borked. Usually after a Windows Update or a third-party codec pack installation (looking at you, K-Lite) that overrides the Microsoft decoder.
Fix: Reset WMP's codec preferences
- Close WMP entirely.
- Open an elevated Command Prompt (Run as Administrator).
- Run this command to unregister all WMP-related DLLs and re-register them:
regsvr32 /u /s wmp.dll
regsvr32 /u /s wmpcore.dll
regsvr32 /u /s wmploc.dll
regsvr32 wmp.dll
regsvr32 wmpcore.dll
regsvr32 wmploc.dll
- Reboot. Try opening the image again.
What's happening here: This tells Windows to re-register the core WMP components from scratch, undoing any stray codec overrides. Doesn't touch your library or playlists — only the decoder pipeline.
Quick-reference summary
| Cause | What it looks like | Fix |
|---|---|---|
| Truncated/incomplete file | Image opens partially in other apps or not at all | Re-save in Paint as PNG |
| Unsupported encoding (progressive JPEG, odd color space) | Image opens fine in Photos, Chrome, but not WMP | Convert to baseline JPEG or PNG using IrfanView/GIMP |
| Corrupted codec registry | Error on all images, even ones that worked before | Re-register WMP DLLs via regsvr32 |
One last thing: if you're doing this for a slideshow in WMP, save yourself time and just batch-convert the whole folder to PNG. WMP handles PNG flawlessly because it uses the Windows Imaging Component for that format (not the old JPEG decoder). That sidesteps the problem entirely.
Was this solution helpful?