image-text-replacer-pro
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "image-text-replacer-pro" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-b0ac999eaa51aa08a3242a92340addf2c26696e61e332233a216d506564198d7. Verify the upstream source and version against https://skillhub.cn/skills/imcopilot/image-text-replacer-pro before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Image Text Replacement: used when a user needs to change text in an image (for example poster titles, menu prices, shop signs, product labels, or event dates) to new content and to specify the original text, the new text, and content to be retained.
Introduction source: third_party · imcopilot · 1.0.8 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Software, accounts and paid services
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: image-text-replacer-pro
description: 当用户要把图片里的字、海报标题、菜单价格、招牌店名、商品图标签或活动日期改成新内容,并能说明原文字、新文字和需保留内容时使用。
version: 1.0.8
author: imcopilot
license: MIT
payment_required: true
pricing:
model: paid
currency: CNY
amount: 0.50
endpoints:
paid-endpoint:
path: https://imcopilot.com/v1/image/paid-text-replacer-v108
method: POST图片文字替换与改字助手
把图片、海报、招牌、菜单或商品图中指定的文字换成新文字,尽量保持原版式、文字位置、字体观感和其他画面内容。
适用场景
- 图片里的字、海报标题、菜单改价、招牌换店名、商品图改标签、活动日期修改。
- 替换图片中明确位置的中文或英文文字,尽量保持原字体观感、大小、颜色和排版位置。
- 电商主图、促销海报、价签、店铺招牌、菜单和社交媒体配图的局部改字。
不适用场景
- 只想删除文字:使用图片文字清除助手。
- 修改人物、商品、背景或整体风格:使用对应专项 Skill。
输入要求
- 提供一张图片或公开图片链接。
- 必须给出
edit_instruction,最好按“把图片左上区域的‘四季’改成‘夏天’,位置不变,其他文字和画面保持不变”的方式写清原文、新文、位置和保留内容。 - 文字应清晰可辨;复杂字体、极小文字或大面积遮挡时不保证完全一致。
精准改字指令
为了减少误改,建议直接用自然语言写清目标文字和大致位置,再按下面模板填写 edit_instruction。如果位置不清楚、文字很小或有多个相同文字时,建议用框选或箭头辅助。不清楚的字段可以省略,但“原文字、新文字、位置、禁止修改内容”尽量写全:
目标位置:图片左上区域、右下角、标题下方等自然语言位置即可;如果文字很小、位置不明显或有多个相同文字,可再用框选、点位、箭头或标注框指出。熟悉坐标时,也可以补充位置坐标、像素坐标或百分比位置。
原文字:“四季”
新文字:“夏天”
文字样式:尽量保持原字体、字号、字重、颜色、对齐方式和字间距;颜色色号可写成 #FFFFFF。
标注说明:如果输入图片带有红框、箭头、点位或标注框,它们仅用于指出目标位置,结果中不要保留这些标注。
需要保留:其他文字、人物或商品、背景、构图和图片比例。
禁止修改:未指定的文字、主体、Logo、商品规格、价格和其他画面内容。
- 位置越具体越容易精准改字;有多个相同文字时,必须说明要改哪一个。
- 不需要专门制作标注图;直接写清文字内容和大致位置即可。只有自然语言仍不够明确时,再用框选或箭头辅助说明。
- 原文字无法辨认时,不要猜测,先请用户补充文字内容或位置。
- 只需要改字时,不要同时提出换风格、换背景、删人物或替换物品等其他编辑要求。
Pay Skill 支付服务声明
- 本 Skill 使用微信 Agent Pay X402 支付服务。付费端点会创建微信支付订单,并以当前 Skill 的 slug 与版本创建 X402 预下单。
- 未付款时,服务必须返回 HTTP
402、WeixinPay-Required响应头和响应体中的WeixinPay提示块,供 Agent 发起用户支付授权。 - 支付确认后,服务才处理原图片;处理明确失败或超时后,由服务端按原订单自动发起退款。
- 发布包版本、SkillHub 表单版本和服务端 X402 预下单中的
skill_info.skill_version必须完全一致。
支付前置检查
- 优先检查当前运行环境能否自动完成 X402/微信支付;能自动支付时,不要额外手动调用
weixinpay_pay。 - 自动支付不可用时,检查
weixinpay是否可用;只有运行环境明确要求人工支付时才使用它。两者均不可用则停止本次付费流程。 - 当前部分
skillhub runCLI 环境不处理 402 支付,付费调用默认按本文件直接请求 HTTP 端点。
调用与支付
- 调用端默认携带正常、非空的浏览器
User-Agent;环境支持时携带真实的Origin和Referer,不得伪造来源。 - 以
POST https://imcopilot.com/v1/image/paid-text-replacer-v108提交file/image或image_url,并提交非空edit_instruction。 - 收到 HTTP
402是正常支付流程。保存WeixinPay-Required与X-Out-Trade-No,优先等待运行环境自动完成支付;仅在其明确要求时使用weixinpay_pay。 - 支付后携带原图片、原
edit_instruction和原X-Out-Trade-No重试同一请求,不得修改内容或重复收费。 - 收到
202和task_id后,每隔 5 秒以POST https://imcopilot.com/v1/image/paid-text-replacer-v108轮询:携带原X-Out-Trade-No,请求体带原out_trade_no与task_id;不得重新支付或改换图片。不要自行拼接/task/{task_id}。 processing_status为PROCESSING表示仍在处理,SUCCEEDED表示完成,FAILED表示处理失败并已进入原路退款;响应中的retry_after_seconds为下一次建议查询间隔。SUCCEEDED且返回result_url后,以GET https://imcopilot.com/v1/orders/{out_trade_no}/result下载结果图片;GET https://imcopilot.com/v1/orders/{out_trade_no}可只读订单状态。GET https://imcopilot.com/v1/orders/{out_trade_no}/job是可选快捷查询,不应作为旧版安装包的唯一依赖;结果保留 5 天。
结果文件格式
- 本版本交付 JPEG 图片,但不能只按原图后缀或下载链接后缀判断。下载后优先按响应
Content-Type命名:image/jpeg用.jpg,image/png用.png,image/webp用.webp。 - 若响应头与文件实际字节不一致或缺失,以文件头为准:
FF D8 FF是 JPEG,89 50 4E 47是 PNG,RIFF....WEBP是 WebP;例如文件头为 JPEG 时保存为result.jpg,不要误当.webp。
调用兼容性
- 优先使用当前 Agent 的 HTTP/multipart 能力,不依赖 Git Bash
curl。 - 如必须使用 Git Bash
curl -F,文件名含&、=、空格等特殊字符时,先复制一份到临时简单文件名后再上传,保留原文件不动。 - Git Bash
curl出现HTTP 000或 SSL 握手失败时,改用当前环境可用的 HTTP 客户端;不要重复支付或把本地连接错误当作服务端处理失败。 - 已安装旧版时,如调用环境只能重试原始
POST,必须保留原图片、原edit_instruction和原X-Out-Trade-No;服务端会将其作为状态刷新处理。
效果复核
确认目标文字已替换、未指定文字和主体仍保留、版式没有明显错位。
失败与退款
上游明确失败或任务超过 15 分钟仍未完成时,系统自动标记为 FAILED 并发起原路退款。继续查询同一订单即可看到 refund_status;不要创建新订单或要求用户再次支付。
Current listing version
1.0.8
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供图片文字替换功能,适用于电商主图、海报、菜单等实际场景
- 解决用户明确的图片编辑需求,具有广泛实用价值
Highlights
- description 清晰描述了使用场景和触发条件
- 覆盖多种变体(文字、海报标题、菜单价格等),边界清晰
Highlights
- 文档结构完整,包含适用场景、输入要求、精准改字指令、支付流程等
- 步骤清晰,有详细示例和出口条件
Highlights
- 提供了完整的支付流程说明和错误处理机制
- 覆盖主要异常场景,包括支付、轮询、失败退款等
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- imcopilot.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.