cyanfish-x/dsh-picture-fit
cyanfish-x★ 0JavaScript最后同步: 2026-08-21
DSH plugin + Agent Skill: auto-fit oversized images with sharp before attachment admission
README 摘要
dsh-picture-fit 中文 English dsh图片大小自动压缩预处理插件,解决dsh聊天框携带过大图片时,调用 deepseek-v4-flash-vision-exp 模型报错的问题; 粘贴 / 拖拽 / 选文件插入图片时,插件会把超限大图自动缩边压缩,避免「图片宽高不能超过 2000px」被拒。同仓附带跨 Agent 的 Skill (Codex / Claude Code / Cursor 等)。 问题描述 粘贴超限大图时,dsh会直接拒绝: - DSH 默认拒绝单边 2000px 的图。 - DeepSeek Vision 官方单边上限更高( 8192 / 多图时 4096 ),见 图像理解 · 限制。 - 宿主选择拒绝而非自动缩图;本插件补上自动 fit。 安装(DSH Web) 提示词安装(推荐) 把下面整段复制发给任意 Agent,让它代为安装: 命令行安装 重启 dsh web 。 设置 入口: 设置 → 图片压缩 。 配置 默认 说明 enabled true 超限时自动缩边 maxDimension null (跟宿主) 覆盖最大边长;宿主常见为 2000 enabled: false 时与官方拒绝超限图行为一致。只存缩后图;不碰 MCP / 其他插件自管图。 Agent Skill 见 skill/SKILL.md。仓库内: 许可 MIT。依赖 sharp(Apache-2.0)。
在 GitHub 查看完整 README →分类
:rocket: The Ultimate Image Uploader for Efficient Creators. Supports Obsidian, Typora, VS Code etc. and 60+ image hosting services (S3, GitHub, Cloudflare R2, Imgur, Aliyun OSS...). Paste, upload, done.
★ 27,002
liustack/modlensThe first vision plugin for DeepSeek Harness, and the vision bridge for every text-only coding agent. Paste an image, get structured JSON evidence (OCR, layout, semantics). | 全网最强 DeepSeek Harness 外挂视觉插件,为 DeepSeek、GLM 等纯文本模型外挂视觉能力,粘贴图片即得结构化 JSON 证据(OCR、版面、语义)。
★ 3,503
Tiger3807861189/J-Space-Cognition-Suite-V3.6J-Space Cognition Suite V3.6 - AI cognitive-enhancement Skills based on Anthropic's J-space global workspace research. | 哔哩哔哩:Tiger380 (UID 3494375382321675) — https://space.bilibili.com/3494375382321675
★ 3,013