Repository navigation
[feat] canvas: add a character four-view preset - #406
Merged
Merged
Conversation
Probiotics5333
requested review from
hsliuustc0106 and
princepride
as code owners
November 19, 2026 09:56
Probiotics5333
force-pushed
the
main
branch
3 times, most recently
from
November 19, 2026 11:35
2a717b8 to
678f7f7
Compare
## summary - Add a `four-view` image preset: one landscape sheet with front, right side and rear full-body views plus a frontal close-up. - Add an optional `faceEmphasis` field for `image-presets`. When the preset is `four-view` it swaps in a prompt that frames the front and side views from the chin down while keeping the full rear view and close-up. - Show the checkbox only for that preset and drop the parameter for other presets; translate the new labels to English. - Widen the image-preset dock a little and let the panel note wrap, so it stays readable beside the new checkbox without a wide empty gap. - Cover the preset list and output size, the prompt swap, the catalog field and the preset-scoped parameter in tests, and keep the existing preset names in both READMEs while documenting the new one. ## validation - `pytest tests/test_tool_tasks.py tests/test_tool_task_history.py`: 70 passed. - `node --test tests/toolCatalog.test.ts`: 11 passed. - `python scripts/generate_contracts.py --check`: verified. - `npm run check:i18n`: 0 problems. - `npx tsc --noEmit`: clean. - `npm test`: 929 of 930 passed; the remaining browser-host case fails in this environment while creating a temporary virtualenv (WinError 5) and does not touch this change. Fixes: ThinkFlowLab#405
Collaborator
Author
Ran: Release checks green on Note: this is an author self-review of the current tip, posted to record that the diff was reviewed. |
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
Add a
four-viewimage preset for character reference sheets: one landscape sheet with front, right-side and rear full-body views plus a frontal head-and-shoulders close-up. An optional "Face emphasis" toggle, shown only for this preset, asks the model to frame the front and side views from the chin down while keeping the full rear view and the close-up.four-viewpreset andFOUR_VIEW_FACE_EMPHASISprompt;image-presetsexposes an optional booleanfaceEmphasis.Linked issue
Fixes #NincludedFixes #405
Labels
type:feat,area:canvas,modality:imageTest plan
pytest tests/test_tool_tasks.py tests/test_tool_task_history.py— 70 passed.node --test tests/toolCatalog.test.ts— 11 passed.npx tsc --noEmit— clean.python scripts/generate_contracts.py --check— verified.npm run check:i18n— 0 problems.npm test— 929 of 930 passed; the remaining browser-host case fails in this environment while creating a temporary virtualenv (WinError 5) and does not touch this change.checks.Evidence that it works
The Four-view preset and the Face emphasis toggle in the node task panel, after the dock was widened so its note fits:
A real sheet generated by
seedream-5.0-profrom that source photo with Face emphasis enabled (3456×1152): the front and side views are framed from the chin down, with the full rear view and a frontal close-up.Provider verification
One real
seedream-5.0-progeneration produced the four-view sheet above, with Face emphasis enabled; no other provider call was made. The standard (non-emphasis) four-view variant, retry and adoption paths were exercised only through the mock image transport in tests, so the default sheet still needs a real run.Bilingual UI
人物四视图/Character four-viewand脸部强调/Face emphasisare translated, andREADME.mdandREADME.zh-CN.mdboth describe the preset.