feat: 图片附件自动压缩#705
Open
Ankairis wants to merge 3 commits into
Open
Conversation
Contributor
Author
|
啊,这,没时间修了啊。。。等我中考完吧 |
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- 手机端「+」菜单新增图片压缩开关(与 OCR 同列,无条件显示),移除输入栏压缩图标按钮。 - 图片压缩默认关闭(旧版本升级与全新安装均为关),与 OCR 默认值逻辑一致,无迁移代码。 - 压缩进度横幅改用与「删除对话」通知同款卡片样式(深色 0xFF1C1C1E / 浅色白、圆角 14、阴影 blur16),进行中显示「第几张/共几张」+ 进度条,完成后显示「原图 → 压缩后(-N%)」3 秒消失。 - 清理闲置的 maxDimension resize 分支;chat_input_bar 三处重复压缩块抽成 helper;ImageCompressionProgress.step 改为私有。 - 设置页仅保留质量滑块,移除原压缩开关。
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.
为图片附件新增「入库时自动压缩」(默认开启),同时减小本地存储占用与发送给模型的 base64 体积(上传更快、token 更省)。复用项目已有的
image包,不引入任何新依赖。功能
说明