67 Commits

Author SHA1 Message Date
Your Name
db070f8a37 fix: increase request body size limit to 500MB for video uploads
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 21:32:07 +08:00
Your Name
b99b3e5718 perf: optimize video playback and encoding for better web streaming experience
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 20:54:25 +08:00
Your Name
e861fc5203 feat: add multi-video tutorial support with dropdown menu and video management
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 20:48:14 +08:00
Your Name
024ec19c70 feat: add tutorial video button and ranking visibility toggle in navbar settings
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 20:37:29 +08:00
Your Name
c44c8cff6a feat: add toolbox1/toolbox2 name and enable settings in navbar config
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 11:11:58 +08:00
Your Name
ab583c38ef feat: add PhotoRoom background removal support in RMBG settings 2026-01-27 22:15:29 +08:00
Your Name
ee4bb14736 feat: add banner settings to admin panel for configuring ad banner text and link 2026-01-26 22:26:44 +08:00
Your Name
9385b6f6d6 feat: implement auto-save, auto-title, and canvas file list sidebar
- Remove manual rename and save buttons from canvas header
- Add auto-save logic with debounce
- Add AI auto-titling and thumbnail generation based on canvas content
- Add CanvasFileList sidebar for managing canvases
- Direct entry to new canvas from top navigation
- Add new API endpoint for auto-titling
2026-01-24 22:50:34 +08:00
Your Name
6a2cbb1b49 feat: use image URLs instead of Base64 for canvas image operations
- Modified ImageNode to upload images to storage bucket before use
- Updated RMBG API to support imageUrl parameter (fetch from URL and convert to Base64 internally)
- Updated Enhance API to support imageUrl parameter
- Updated canvas service layer to use imageUrl for all image processing APIs
- All processed images are saved to storage bucket and user gallery
2026-01-24 20:58:15 +08:00
Your Name
1a9f453a20 fix: use correct function names for AI model queries 2026-01-24 20:23:41 +08:00
Your Name
c7ffcda87b feat: add infinite canvas feature with AI image generation
- Add canvas project and node database tables
- Create canvas workspace with drag, resize, zoom and pan
- Add ImageNode with background removal, enhance, extend, angle edit, scene fusion
- Add VideoNode with playback controls
- Add TextNode for text editing
- Integrate AI image generation API (Gemini/Alibaba)
- Implement viewport culling for performance optimization
- Add canvas entry in top navigation bar
2026-01-24 19:48:13 +08:00
Your Name
da99fbdc93 fix: improve error handling for streaming response in scene fusion 2026-01-22 19:41:58 +08:00
Your Name
bec71cf195 feat: implement streaming response for scene fusion - show images as they complete 2026-01-22 19:33:06 +08:00
Your Name
b8efd6b096 fix: optimize scene fusion prompts - use 'reference' approach for better product preservation 2026-01-18 22:03:06 +08:00
Your Name
ade71701e8 feat: support multiple model types for scene fusion (Alibaba, Gemini, Volcano Vision) 2026-01-18 21:42:13 +08:00
Your Name
1a0dad7895 fix: support gemini and volcano-vision provider types for scene fusion model selection 2026-01-18 21:37:08 +08:00
Your Name
0547ab2cc2 feat: add model selection for scene fusion - allow choosing between Alibaba and Gemini models 2026-01-18 17:04:47 +08:00
Your Name
150b146f91 debug: add detailed logging for scene fusion API response 2026-01-18 16:56:20 +08:00
Your Name
8643531e5d feat: add aspect ratio and resolution selection for scene fusion 2026-01-18 16:44:46 +08:00
Your Name
c5ea1ee3d6 fix: optimize prompts to prevent product deformation & completely remove black border from blur effect 2026-01-18 16:30:36 +08:00
Your Name
fbf2ecaf87 feat: add product name and target name inputs for more precise scene fusion prompts 2026-01-18 16:23:16 +08:00
Your Name
9f25cc3708 fix: remove black border from blur effect, fix gallery save issue (uuid type), enhance logging 2026-01-18 16:17:35 +08:00
Your Name
cb1c808ece chore: add detailed debugging logs for scene fusion API 2026-01-18 16:04:56 +08:00
Your Name
230e101858 feat: change scene fusion to serial processing with 5s delay and add detailed logging 2026-01-18 15:57:21 +08:00
Your Name
1d94176700 chore: 增强场景裂变 API 错误日志,输出完整 API 响应 2026-01-18 15:45:11 +08:00
Your Name
24af251fd3 feat: 系统设置增加默认主题模式配置
- 管理员可以设置网站默认使用深色/浅色/跟随系统模式
- 新增 defaultTheme 字段到 SiteSettings 表
- 前端 ThemeProvider 从数据库读取默认主题设置
2026-01-18 15:21:17 +08:00
Your Name
688f67c25c feat: 图片编辑器升级 - 入口优化 + 场景裂变功能
功能一:图片编辑器入口优化
- 支持先打开编辑器再上传图片
- 新增拖拽上传功能
- 新增粘贴上传功能 (Ctrl+V)

功能二:场景裂变
- 新增场景裂变弹窗组件
- 支持产品图批量融合到多个场景
- 每个场景独立配置补充关键词
- 并发处理提高效率
- 支持单个重新生成和全部下载
- 生成结果自动保存到相册

管理员配置:
- 新增场景裂变配置面板
- 支持自定义默认提示词
- 支持配置最大场景数量
- 支持功能开关

新增文件:
- app/api/scene-fusion/route.ts
- app/api/scene-fusion/config/route.ts
- components/scene-fusion-dialog.tsx
- docs/图片编辑器功能升级规划.md
2026-01-18 14:56:21 +08:00
Your Name
eae8ea9436 feat: 集成阿里千问生图模型 (alibaba-image)
- 新增 alibaba-image provider 支持 qwen-image-edit-plus 系列模型
- 支持 1-6 张图片输出、提示词优化、反向提示词等参数
- 扩展 ImageParamsBar 支持阿里模型专用参数
- 创建通用 ImageGenerationLoading 组件(可配置颜色主题)
- 管理后台添加图片生成模型特性配置界面
- 数据库新增 imageGenConfig 字段存储生图特性
- 确保生成图片正确保存到相册和生图记录
2026-01-12 12:02:44 +08:00
Your Name
4024756ea6 feat: 在导航栏图片编辑器中添加角度调整功能按钮 2026-01-12 11:27:16 +08:00
Your Name
b12dd2d77a feat: Integrate Qwen-Image-Edit 3D angle controller and update UI 2026-01-10 23:07:14 +08:00
Your Name
00b167909f 修改Real-ESRGAN备用API为URL方式调用
变更:
- 改为先上传原图到S3获取URL
- 使用/upscale/url接口而非/upscale/base64
- URL方式传输效率更高,适合大图处理
- Real-ESRGAN API会自动处理并返回处理后的S3 URL
2026-01-04 16:04:09 +08:00
Your Name
88ac9e2a46 添加备用变清晰API (Real-ESRGAN)
功能:
- 在系统设置中添加备用API配置选项
- 支持管理员切换使用主API或备用Real-ESRGAN API
- 备用API使用Base64方式发送图片
- 支持配置放大倍数(2x/4x/8x)和模型选择

Real-ESRGAN API特点:
- 基于深度学习的图像超分辨率模型
- 支持RealESRGAN_x2plus/x4plus/x8plus模型
- 支持动漫视频模型
- 处理时间1-10秒

后台切换对前端用户透明无感知
2026-01-04 15:50:38 +08:00
Your Name
1802614e5c 添加图片变清晰功能调试日志和验证
- 添加详细的外部API返回数据日志
- 对比原图和处理后图片大小,检测是否返回原图
- 添加下载URL验证逻辑
- 确认原图上传时没有压缩处理(直接上传外部API返回的图片)
- 添加图片大小变化百分比日志
- 如果外部API返回原图会发出警告

用于诊断:用户下载的图片是否是处理后的图片
2026-01-02 21:03:54 +08:00
Your Name
00b8755838 修复路由冲突:删除重复的 detect-object 路由
Next.js 16.1.1 不允许重复路由。
删除 app/(chat)/api/detect-object/route.ts,保留 app/api/detect-object/route.ts 作为主要API路由。
2026-01-01 12:38:55 +08:00
Your Name
60082aca6f 修复时间显示和图像拓展功能
- 添加formatBeijingTime函数,将所有时间显示转换为北京时间(UTC+8)
- 更新相册、管理后台、精选页面的时间显示
- 图像拓展功能改为直接发送图片URL而不是base64
- 优化API性能,减少数据传输量
2025-12-30 20:16:47 +08:00
Your Name
bbf9768bc9 添加尺寸调整功能,统一图片处理按钮样式
- 新增尺寸调整功能:用户可以自定义画布尺寸、背景颜色、图片位置和缩放
- 创建/api/resize API端点:上传处理后的图片到存储桶并保存到数据库
- 统一图片处理按钮样式:将变清晰、抠图、图像拓展按钮底色改为70%透明黑色
- 支持透明背景和彩色背景的尺寸调整
- 图片可拖拽移动和滚轮缩放
- 处理后的图片自动保存到相册和生图记录
2025-12-29 23:02:30 +08:00
Your Name
1f213bb92d feat: 图像拓展功能优化和防重复点击
- 图像拓展API改为使用URL方式,避免Base64长度限制(61440字节)
- 先将图片上传到S3获取公网URL,再调用Dashscope API
- 添加防重复点击功能,处理中时禁用所有图片处理按钮
- 添加自动滚动功能,点击处理按钮后自动滚动到最新消息
- 处理完成后也会自动滚动到底部显示结果
2025-12-29 16:18:46 +08:00
Your Name
7c253e04a0 feat: 添加图像拓展功能
- 新增 /api/extend 路由,集成阿里云Dashscope图像拓展API
- 在系统设置'本地AI设置'中添加图像拓展API配置(API密钥、X/Y轴放大倍数)
- 在图片标注组件中添加'图像拓展'按钮(橙色,Expand图标)
- 在聊天对话图片上添加'图像拓展'按钮,支持动态占位卡片
- 更新ImageProcessingLoading组件支持extend类型(橙色主题)
- 处理后的图片上传到S3,保存到数据库(modelId: extend-1.0)
- 同步到我的相册和出图记录
- 添加完整的API调用文档
2025-12-29 10:54:32 +08:00
Your Name
1c7bd9e2d0 feat: 在聊天对话中为图片添加变清晰和抠图功能
- 在图片预览组件左上角添加变清晰和抠图按钮
- 创建图片处理加载组件(类似Gemini生图的动态卡片效果)
- 实现点击按钮后的处理逻辑:创建临时消息、调用API、更新消息
- 添加消息保存API用于保存处理后的图片消息
- 当消息文本为'正在变清晰...'或'正在抠图...'时显示动态加载组件
- 处理完成后替换加载卡片为处理后的图片并保存到数据库
2025-12-29 09:10:52 +08:00
Your Name
349a362f27 feat: 在相册中为变清晰后的图片添加右上角图标标识 2025-12-29 08:09:42 +08:00
Your Name
c68c1a1964 fix: 修复enhance API中image字段可能是base64字符串而非URL的问题,添加URL验证 2025-12-29 02:03:36 +08:00
Your Name
f239642716 fix: 修复FormData Buffer转换时chunk类型错误,确保所有chunk都转换为Buffer 2025-12-29 01:59:31 +08:00
Your Name
477d84accc fix: 修复FormData stream未触发的问题,使用pipe触发stream读取 2025-12-29 01:56:38 +08:00
Your Name
4d50509cf7 debug: 添加FormData Buffer转换完成的日志 2025-12-29 01:53:25 +08:00
Your Name
e9cbca3042 debug: 添加轮询进度日志,监控任务处理状态 2025-12-29 01:50:18 +08:00
Your Name
4e4c5e6bba debug: 添加请求体处理步骤的调试日志 2025-12-29 01:47:02 +08:00
Your Name
e3f15b8bef debug: 添加更多enhance API调试日志 2025-12-29 01:44:44 +08:00
Your Name
b64cefccb5 debug: 添加enhance API请求追踪日志 2025-12-29 01:42:12 +08:00
Your Name
bacac837bd fix: 增加enhance API的超时时间,解决499错误(客户端关闭连接) 2025-12-29 01:29:23 +08:00
Your Name
05ea65964b refactor: 根据官方示例重写enhance API,使用异步模式(创建任务+轮询) 2025-12-29 01:21:48 +08:00