Commit Graph

16 Commits

Author SHA1 Message Date
lhk229 2095d8686a 收口画布生图抠图选项
移除前端用户侧背景色和抠图模型选择入口,提交路径固定使用 auto 与 birefnet。

清理生成输入快照和恢复逻辑中的抠图背景色与抠图模型残留。

保留后端 BgFilter 内部兼容能力,并修正空图标描述不再兜底默认描述提交。

同步更新编辑器和项目记忆文档。
2026-07-07 04:04:37 +00:00
lhk229 81fff0eda5 调整画板生图抠图背景配置
新增画板生图背景色自动决策模块,并接入角色、图标和 UI 素材提取三条路径。

扩展用户可选背景色到 11 个,并把 auto 作为默认背景色选项。

保留 anime-seg 内部解析能力,但用户界面只展示并提交默认 birefnet。

BgFilter 失败时增加本地纯色背景去背兜底,降低外部服务失败影响。

新增 BGFilter 探活与 gpt-image-2 尺寸生成调试脚本。

同步更新编辑器、生图链路和后端架构相关文档。
2026-07-06 09:25:45 +00:00
lhk229 c535e3121e 接入画布生图背景抠图配置
新增画布角色、图标和UI素材提取的背景色与抠图模型参数。

接入独立 BgFilter 服务并保留旧手动去背景服务。

保存纯色背景源图并在生成后调用 BgFilter 去背景。

调整生图面板选项布局和抠图模型显示文案。

同步前后端测试、架构文档和项目记忆。
2026-07-05 12:55:14 +00:00
lhk229 4055bc7f2a 合并 master 并保留画布背景色改动
保留画布生图 screenColor 背景色选择、传参和文档约定。

合并 master 快速编辑、音频生成和外部 API 相关更新。

补齐 UI 提取测试默认背景色并完成冲突验证。
2026-07-03 07:49:24 +00:00
kdletters d707613a8b 修复画布快速编辑回写与原图元数据
快速编辑回到原图面板流程,避免新建生成器占位

提交快速编辑时传入目标图层并在后端成功后回写画布

快速编辑生成输入记录原图引用,图片信息可展示原图来源

同步前后端测试与图片画布文档记忆
2026-07-02 23:05:48 +08:00
lhk229 06cad7e428 支持画布生图选择抠图背景色
新增画布生图背景色选项并在角色、图标和 UI 素材提取入口展示选择控件。

将 screenColor 贯穿前端提交、后端请求解析、prompt 构建和生成后本地后处理调用。

保留角色动作旧绿幕路径,避免影响既有动画生成流程。

补充相关前后端单元测试和编辑器文档说明。
2026-07-02 14:56:26 +00:00
kdletters bb51c7e0d2 快速编辑直接覆盖原图
将图片快速编辑提交切到 /api/editor/images/edits,并用结果回写源图层

保留重绘作为右侧新结果图层,角色重绘继续走 character 生成契约

更新快速编辑文档和定向回归测试
2026-06-27 20:06:24 +08:00
kdletters 3c125ceb86 统一快速编辑与改造生成弹窗底盘
复用 ImageCanvasBasicGenerationComposerView 作为快速编辑面板容器

复用 ImageCanvasBasicGenerationComposerView 作为改造对话框容器

为基础底盘增加可配置化参数,覆盖标题、提示词、按钮、参考图和引用源能力

生成器参数与状态可由外层覆盖,支持快速编辑重绘等场景定制

Quick-edit 参考图使用通用参考图 Slot,不再手写组件
2026-06-25 18:17:41 +08:00
wuxiangwanzi 6caf349992 锁定画布UI设计图模型选择
固定生成UI设计图模型展示为gpt-image-2

对齐角色规范面板的只读模型展示样式

提交层兜底强制UI设计图使用gpt-image-2

补充模型锁定与旧草稿兜底测试
2026-06-22 21:51:59 +08:00
JenkenB c836ac604d Treat character-action generations as video & UI tweaks
Handle character-action generation results as real video assets: use backend previewVideoPath as layer src, set mediaType="video" and assetKind="character-animation", and store the first frame only as thumbnail/poster. Update docs to document the new behavior and preserve backend frame extraction/green-screen workflows. Update UI/UX: compact parameter labels (e.g. "16:9·1K"), quick-edit treats original image as an implicit last reference (hidden from the reference bar) and allows editable bottom capsules, and ensure exports preserve true media file types. Change upload toolbar icon to Upload and add tests to cover the icon and video-layer behavior; also add serialization/hydration test for video thumbnails and adjust many integration/unit tests to reflect new labels, sizes and generation semantics. Files touched include multiple docs under docs/, edited components and tests under src/components/image-editor/, and minor stylesheet updates.
2026-06-22 13:45:20 +08:00
kdletters 10dcc2b403 修复图片画布素材与宣发尺寸问题
修复画布上传素材持久化回填和项目重进资源元数据恢复

修复图片、音频、视频图层的私有资源换签与视频裸路径回退

修复宣发素材切换模型后卡片尺寸变成1024x1024的问题

修复音视频预览、媒体导出格式、音频默认提示词和前端去背边界

修复角色动作生成在编辑器路径缺少ffprobe时的已知时长兜底

补充图片画布、资源换签、宣发尺寸、媒体导出和chromaKey回归测试

更新图片画布编辑器技术文档
2026-06-19 23:16:59 +08:00
JenkenB 991fea965f Normalize nanobanana aliases to real model
Unify UI aliases for the Nanobanana image model by mapping display and legacy names to the real model ID (gemini-3.1-flash-image-preview). Added normalizeEditorImageModel and used it across generation, dialog, submission and workflow code paths to ensure consistent model selection and pricing. Server-side editor_generation_config and editor_project were updated to accept the display alias (nanobanana2) and legacy alias (nano-banana) for validation/pricing. Tests and docs were added/updated to cover alias normalization and related UI behavior; minor code formatting tweaks included.
2026-06-19 13:05:00 +08:00
JenkenB 0e47a54a91 对齐编辑器生成占位与面板参数
统一画布生成占位图标,按图片、规范、角色、图标、UI、视频、音频、宣发和快速编辑区分。

让图片、规范、宣发和视频新建占位按面板尺寸或固定输出尺寸创建,并在参数变化时同步占位大小。

完善快速编辑、音频生成、宣发素材和生成类面板相关契约与测试。

更新生成类面板 Lovart 改造文档和项目决策记录。
2026-06-19 12:15:57 +08:00
JenkenB ac180ecad9 完善画板生成音乐与生成面板交互
新增画板底部生成音乐入口,支持游戏音效和游戏背景音乐生成面板。

接入编辑器音频生成前后端契约、VectorEngine 请求与 BFF 路由。

补齐音频结果图层、元数据、画布恢复和客户端提交流程。

统一生成类面板 Lovart 式参数浮层、参考素材入口与相关测试。

更新编辑器音乐生成设计文档和项目长期记忆。
2026-06-18 15:42:17 +08:00
JenkenB 8956ed6fe6 Unify canvas generation placement and UI changes
Add unified placement and UI updates for canvas generation: docs require ImageCanvasGenerationPlacementModel to compute placeholder positions (avoid overlaps, center viewport on placement) and limit frontend video model entries. Refactor UI components and tests: expose div props on PlatformFloatingMenu, make PlatformInlineOptionButton forwardRef, replace inline placeholder actions with ImageCanvasGenerationImageOptionsView in basic generation composer, enhance character animation panel with parameter menu portal and option choices, add reference chip UI, and update many tests to match new interactions and labels. These changes align generation workflows, accessibility labels, and positioning behavior across editor panels.
2026-06-18 11:40:19 +08:00
kdletters d8b935317d 拆分编辑器前端画布视图
抽出素材栏、生成器、舞台工具栏和画布世界视图

补充各拆分视图的聚焦测试

更新 TRACKING.md 记录第三十四阶段验证
2026-06-17 17:48:12 +08:00