Skills Plugins MCP Prompt Model 博客 我的中心

image-compress

图片压缩/转换 - 批量压缩、改尺寸、转格式(jpg/png/webp),本地处理不失隐私

DeepseekModel Curated skill Quality Excellent · 90 v1.0.0

Get

https://deepseekmodel.com/api/download.php?id=dongsheng123132-u-claw-portable-skills-cn-image-compress-skill-md&format=skill
Download .skill Standard format with system_prompt and model_config, ready for any agent framework
The actual content of the system_prompt field in the .skill file.
name image-compress description 图片压缩/转换 - 批量压缩、改尺寸、转格式(jpg/png/webp),本地处理不失隐私 metadata {"openclaw":{"emoji":"🖼️"}} 图片压缩 / 转换 帮用户压缩图片体积、调整尺寸、转换格式,全部本地处理,照片不外传。 能力概述 压缩 :降低体积(控制质量/分辨率),适合发邮件、传微信 改尺寸 :按宽高或百分比缩放 转格式 :jpg / png / webp 互转(webp 体积最小) 批量 :处理整个文件夹 操作方式 用 Bash 工具,Python 的 Pillow 库(跨平台、纯本地): python -c "import PIL" 2>/dev/null || pip install -q Pillow # 单张压缩(质量 75,宽度限制 1600px 等比缩放) python - << 'PY' from PIL import Image im = Image.open( "input.jpg" ) if im.width > 1600: im = im.resize(( 1600 , int(im.height* 1600 /im.width))) im.convert( "RGB" ).save( "output.jpg" , "JPEG" , quality=75, optimize=True) print ( "已压缩 -> output.jpg" ) PY # 批量:当前目录所有 jpg/png -> webp(体积更小) python - << 'PY' from PIL import Image import glob, os for f in glob.glob( "*.jpg" ) + glob.glob( "*.png" ): out = os.path.splitext(f)[0] + ".webp" Image.open(f).save(out, "WEBP" , quality=80) print (f "{f} -> {out}" ) PY 使用建议 处理前 ls -lh 看原图体积,处理后再 ls -lh 对比,告诉用户压缩了多少 默认不覆盖原图(输出新文件名),除非用户明确要求覆盖 含透明通道的 PNG 转 JPG 会丢透明,转 webp 可保留——按需选格式
Keywords that activate this skill. Click one to copy it.

This skill does not provide trigger words.

The downloaded .skill package contains the following fields.
Field Description
formatFormat tag (skill/v1)
skill_idUnique skill ID
nameSkill name
versionVersion
descriptionDescription
categoryCategories (array)
trigger_wordsTrigger words
tagsTags
sourceSource
source_urlSource URL (this page)
exported_atExported at (set per download)
system_promptSystem prompt body
model_configModel config: provider / model / temperature / max_tokens / top_p
examplesExamples
install_guideImport guide for Coze / Dify / Claude / custom frameworks
The same skill can be exported in different platform formats.
.skill Standard format with system_prompt and model_config, ready for any agent framework Download
.skillpro Enhanced format with scripts, tools, dependencies and hooks Download
.json Plain JSON export with system_prompt and model parameters only Download
Coze Markdown with frontmatter, for Coze platform import Download
Dify Dify DSL, import directly after creating an app Download

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

验证码 --

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。