libimagequant.dll Error in Windows 10 and 11: Indexed color export errors

A converter can save full-color images but fails during a supported color-quantization or indexed PNG export.
What this DLL does
libimagequant supports palette reduction in image-processing software.
Start with this check
Try a small disposable image with a basic palette target. Check which package owns the DLL.
Record the exact error, when it occurred, and the full module path if available. For a crash, open View reliability history from Start and look for the matching entry. The affected app, faulting module and exception code help distinguish an app problem from a system-wide one.
Choose the repair that fits
Repair the application or restore the matched libimagequant runtime supplied for that build.
Start with Microsoft’s app repair options if only one supported application fails. If unrelated built-in Windows features also fail and you suspect system file corruption, use Microsoft’s DISM and System File Checker instructions. Use supported packages and avoid downloading individual DLL files.
Verify the repair
Produce a test indexed image, reopen it and verify the expected palette and appearance.
For a related check, see windowscodecs.dll troubleshooting. Browse the DLL Errors & Fixes Library. Official reference: MSYS2 Windows package manifest for libimagequant.