libgif-7.dll Error in Windows 10 and 11: GIF image and animation load errors

Image preview works with JPEG but fails with a GIF or closes when an animation begins.
What this DLL does
GIFLIB supplies GIF image processing for compatible Windows software.
Start with this check
Compare a small static GIF with a supported animation and record the first library or file error.
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 through its publisher or restore the matching GIFLIB package.
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
Open a known-good GIF and, when the app supports animation, confirm that frames advance.
For a related check, see windowscodecs.dll troubleshooting. Browse the DLL Errors & Fixes Library. Official reference: MSYS2 Windows package manifest for giflib.