88 Commits

Author SHA1 Message Date
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
7704a799f8 fix: update canvas chat panel header to match official design 2026-01-24 22:29:31 +08:00
Your Name
77b2b765ea fix: remove quick tools tab from canvas sidebar 2026-01-24 22:21:51 +08:00
Your Name
3c2943e1cb feat: integrate image editing tools into canvas sidebar and optimize UI 2026-01-24 22:18:03 +08:00
Your Name
39c726b5af fix: shrink canvas toolbar and restore chat banner 2026-01-24 22:03:17 +08:00
Your Name
1ad0bc8db6 fix: remove logo from canvas chat panel greeting 2026-01-24 21:57:55 +08:00
Your Name
601900f933 fix: adjust canvas UI layout - vertical toolbar and header position 2026-01-24 21:48:05 +08:00
Your Name
30950a89dc fix: adjust canvas layout - move toolbar to left, save to left, increase chat height 2026-01-24 21:40:46 +08:00
Your Name
f5c52bfdc6 feat: redesign chat panel to match LOVART style 2026-01-24 21:36:05 +08:00
Your Name
79e5a870e1 feat: comprehensive UI redesign for infinite canvas (LOVART style) 2026-01-24 21:27:36 +08:00
Your Name
f289eca90c feat: integrate chat panel into canvas sidebar
- Add CanvasChatPanel component for AI conversation in canvas
- Auto-sync generated images from chat to canvas nodes
- Add tabbed interface to switch between AI Chat and Quick Tools
- Widen sidebar to 384px to accommodate chat interface
- Extract image URLs from messages and create canvas nodes automatically
2026-01-24 21:19:25 +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
0d5742a7a8 fix: add missing Settings import in canvas editor page
Fixed ReferenceError: Settings is not defined by adding the Settings icon import from lucide-react.
2026-01-24 20:48:53 +08:00
Your Name
485d6c0615 feat: use main navbar for canvas page 2026-01-24 20:30:36 +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
0333f1953e fix: use 'auto' value instead of empty string for Select component 2026-01-18 21:45:52 +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
7620f0b7e0 fix: improve model selection dropdown for scene fusion 2026-01-18 17:11:31 +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
e5b3088671 feat: 优化阿里生图模型错误提示,使用后台配置的模型名称
- 错误提示中显示后台配置的模型显示名称
- 添加 modelDisplayName 参数到 doGenerate 接口
- 当用户只发文字时,提示需要上传图片
2026-01-12 12:25:52 +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
604d7425ad fix: 完成角度编辑功能的组件传递链,使按钮正确显示 2026-01-11 00:29:54 +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
fea5e0fac5 优化图片压缩技术:避免双重压缩,保持JPG/PNG格式
- 客户端压缩:保持原格式(JPG保持JPG,PNG保持PNG),不再强制转换为WebP
- 提高压缩质量:最低质量从0.6提高到0.90,避免画质损失
- 启用高质量图像平滑:减少锯齿,提升画质
- 服务器端智能优化:使用MozJPEG和PNG优化算法
- 避免双重压缩:小文件(<3MB)跳过服务器端优化,只有优化效果明显(>5%)才使用
- 优化策略:优先缩小尺寸而不是降低质量,留余量给服务器端优化

技术改进:
- JPEG: MozJPEG编码器,质量92%,渐进式,优化扫描
- PNG: 压缩级别6,自适应过滤,调色板优化
- 智能判断:避免不必要的双重压缩,保护画质
2026-01-02 20:46:01 +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
cc76d87649 修复favicon未替换问题和优化尺寸调整功能
- 彻底修复favicon未替换问题:改进Metadata配置,添加客户端FaviconUpdater组件
- 添加缓存破坏参数,确保浏览器正确加载新的favicon
- 尺寸调整完成后添加下载按钮
- 保持尺寸编辑状态下左右图片虚线框相同尺寸(714x570px)
- 优化工具栏布局,宽高设置移动到选择比例工具栏后面
2025-12-30 00:15:56 +08:00
Your Name
bbf9768bc9 添加尺寸调整功能,统一图片处理按钮样式
- 新增尺寸调整功能:用户可以自定义画布尺寸、背景颜色、图片位置和缩放
- 创建/api/resize API端点:上传处理后的图片到存储桶并保存到数据库
- 统一图片处理按钮样式:将变清晰、抠图、图像拓展按钮底色改为70%透明黑色
- 支持透明背景和彩色背景的尺寸调整
- 图片可拖拽移动和滚轮缩放
- 处理后的图片自动保存到相册和生图记录
2025-12-29 23:02:30 +08:00
Your Name
0112baf88c 修复图片编辑器弹窗显示问题,设置默认黑暗模式
- 修复图片编辑器弹窗:使用与preview-attachment相同的居中方式
- 设置项目默认使用黑暗模式(defaultTheme: dark)
2025-12-29 17:02:47 +08:00
Your Name
f641038992 fix: 添加sessionStorage错误处理,解决部分用户无法访问的问题
- 为所有sessionStorage操作添加try-catch错误处理
- 在sessionStorage不可用时(如隐私模式)优雅降级
- 避免浏览器扩展注入脚本导致的错误影响应用运行
- 确保即使sessionStorage被禁用,应用也能正常工作
2025-12-29 16:33:54 +08:00
Your Name
1f213bb92d feat: 图像拓展功能优化和防重复点击
- 图像拓展API改为使用URL方式,避免Base64长度限制(61440字节)
- 先将图片上传到S3获取公网URL,再调用Dashscope API
- 添加防重复点击功能,处理中时禁用所有图片处理按钮
- 添加自动滚动功能,点击处理按钮后自动滚动到最新消息
- 处理完成后也会自动滚动到底部显示结果
2025-12-29 16:18:46 +08:00