Skip to content

[feat] media: support HEIC and HEIF image assets - #287

Open
wuli666 wants to merge 1 commit into
ThinkFlowLab:mainfrom
wuli666:wuli666/huabu
Open

wuli666 wants to merge 1 commit into
ThinkFlowLab:mainfrom
wuli666:wuli666/huabu

Conversation

@wuli666

@wuli666 wuli666 commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

HEIC/HEIF photos can now be imported into the canvas and reused as ordered references for MiniMax-H3-Image and MiniMax-H3-Image-Highspeed.

  • Retain original files and generate correctly oriented browser previews through shared media services.
  • Preserve original bytes through downloads, publication, cross-project paste and canvas archive round trips.
  • Apply the same validation to UI and Agent command sources, including mixed-format reference ordering, existing model limits and bilingual rejection messages.
  • Add real HEVC-encoded fixtures, regression coverage and Chinese/English user documentation.

Linked issue

Labels

  • Applicable type: and area: labels applied.

Test plan

Local validation completed for this patch:

  • 167 focused Python tests and 766 frontend tests passed.
  • TypeScript/Vite build, i18n, browser manifest/locale, import boundaries and generated contract checks passed.
  • Browser HEIC/HEIF checks passed: upload, mixed PNG/JPEG/WebP drop, orientation, reload, corrupt/oversized bilingual rejection, original downloads, archive round trips, publication and cross-project paste fallback.
  • Structured editor browser regressions passed.
  • DeepSeek review through pi completed; the identified image-sequence admission issue was fixed and reviewed again without a remaining blocker.

CI: repository PR and release checks; results will be reported by GitHub Actions.

Evidence that it works

The committed HEIF browser regression verifies actual oriented pixels, persisted assets and original bytes, not just visible node creation. Reproduction commands and scope are in the validation guide.

  • Browser screenshots are saved locally as test-results/heif/zh-CN.png and test-results/heif/en-US.png; they are not attached to this PR.

Provider verification

  • No live MiniMax requests were made.
  • Browser model submissions used fixture results. Python tests exercised the real adapter against mocked HTTP through UI and Agent command sources.
  • Live MiniMax editing, model quality, a live Agent conversation, camera HDR profiles and installation on other platforms remain unverified.

Bilingual UI

  • Chinese and English errors and user documentation are included; both display languages were inspected and npm run check:i18n passed.

## summary

- Retain HEIC/HEIF originals and serve oriented browser previews.
- Preserve original bytes in downloads, clipboard transfers, media
  publication and canvas archive round trips.
- Enable mixed HEIF references for both MiniMax H3 image models with
  shared validation, bilingual errors and regression fixtures.

## validation

- 167 focused Python tests and 766 frontend tests passed.
- TypeScript/Vite build, i18n, browser manifest/locale, import boundaries
  and generated contract checks passed.
- Browser import, paste, archive and structured editor checks passed.
- Generation used mock providers; no live MiniMax requests were made.

Fixes: ThinkFlowLab#282
@github-actions github-actions Bot added area:assets Assets, library and reference inputs modality:image Image generation or editing provider:minimax MiniMax H3 / speech / music services type:feat New capability or behaviour labels Nov 11, 2026
@github-actions
github-actions Bot requested a review from FayeSpica November 11, 2026 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:assets Assets, library and reference inputs modality:image Image generation or editing provider:minimax MiniMax H3 / speech / music services type:feat New capability or behaviour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] canvas: Support HEIC and HEIF imports for MiniMax-H3-Image editing

1 participant