Skip to content

Conversation

@bigcat88
Copy link
Contributor

@bigcat88 bigcat88 commented Dec 30, 2025

Pillow can raise ValueError("No data found for frame") on some MPOs when
seeking a later frame with missing/invalid data. This prevented LoadImage
from returning the successfully decoded primary image.

We wrap iteration of the frames and if first frame is ok(only for MPO format), we ignore other decoding errors.

Exception happens here: https://github.com/python-pillow/Pillow/blob/2ebb3e9964bcfb46e2b8dcaec1917caf67730a7d/src/PIL/MpoImagePlugin.py#L152-L155

Edited: Alternative PR was created with less changes and keeping the current logic.

@bigcat88
Copy link
Contributor Author

+label: Core

@bigcat88
Copy link
Contributor Author

-label: Core

@comfy-pr-bot comfy-pr-bot removed the Core Core team dependency label Dec 31, 2025
@Kosinkadink
Copy link
Member

Closing in favor of #11569

@Kosinkadink Kosinkadink closed this Jan 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants