Repository navigation
[Feat] multimodal: Decode HEIF images and read relative BMP, TIFF and HEIF paths - #49673
Merged
Merged
Conversation
…tiff and heif image paths
hnyls2002
requested review from
HaiShaw,
JustinTong0323,
mickqian,
yctseng0211,
yhyang201 and
yuan-luo
as code owners
November 10, 2026 23:24
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
Collaborator
Author
|
/rerun-test test_preprocess_cache.py test_base_processor_bad_input.py test_feature_identity.py |
Contributor
|
🚀 🚀 |
Collaborator
Author
|
/tag-and-rerun-ci |
41 of 42 tasks
hnyls2002
added a commit
that referenced
this pull request
Nov 11, 2026
This was referenced Nov 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pillow-heifpackage is installed,media_ioregisters its Pillow opener, so HEIC/HEIF images decode. Without it nothing changes: such images still fail withcannot identify image file(400).image_extension_namesadds.bmp,.tif,.tiff,.heicand.heif. Its consumer that changes behavior is the multimodal cache'ssnapshot_media, which reads a relative local image path by extension; a relativeimage.bmpused to fall through to base64 decoding and fail withNon-base64 digit found. Absolute paths already loaded and are unchanged.Split out of the Kimi-K3.1 Day-0 port (#48414) so that #48778 keeps only the media error handling.
Verification
test_relative_local_path_uses_file_bytesnow covers.png,.bmp,.tiffand.heic; it fails on main and passes here (registered/unit/multimodal/test_preprocess_cache.py: 26 passed, 1 skipped).pillow-heif1.8.1: HEIC bytes, base64 and an absolute.heicpath decode on this branch and fail on main. There is no CI test for it, sincepillow-heifis not a dependency.CI States
Latest PR Test (Base): 🚫 Run #42923044639
Latest PR Test (Extra): ❌ Run #42923044411
Latest PR Test (AMD ROCm 10): 🚫 Run #42923044404
Tip
Base CI only covers the core cases, and its workload may not exercise your change. Use
/rerun-testto run the tests your change touches, or copy this prompt for an agent: