Commit Graph
1 Commits
Author SHA1 Message Date
Patrick Jr. 6680bbbe3e fix: handle broken cached image data and wrong resize filter in ImageCache
Fixes #1079

- Call .load() immediately after Image.open() when loading from the
  on-disk cache, so OSError from corrupt/truncated files is caught
  early and triggers a re-fetch from the network instead of crashing.
- Add OSError handling around image.resize() as a second safety net
  for images that are corrupt after downloading.
- Replace incorrect Image_module.Palette.ADAPTIVE resampling argument
  with the correct Image_module.Resampling.LANCZOS in resize().
2026-06-05 18:02:06 +02:00