AI Summary将图像文件压缩为更小的体积,通过调整压缩质量参数控制输出文件大小。
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to install the "compress_image" skill in my project. Please run this command in my terminal: # Install skill into your project (2 files) mkdir -p .claude/skills/compress_image && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/compress_image/SKILL.md "https://raw.githubusercontent.com/CoderWanFeng/python-office/develop/skills/image/compress_image/SKILL.md" && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/compress_image/__init__.py "https://raw.githubusercontent.com/CoderWanFeng/python-office/develop/skills/image/compress_image/__init__.py" Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.
Description
压缩图片文件大小,通过调整质量参数控制输出体积。当用户提到压缩图片、图片减肥、缩小图片体积、降低图片质量时使用。
compress_image Skill
> 压缩图像文件,以减小其文件大小,同时尽量保持视觉质量
功能描述
将图像文件压缩为更小的体积,通过调整压缩质量参数控制输出文件大小。
所属分类
office/skills/image/compress_image/
调用方式
`python from office.skills.image import compress_image compress_image( input_file='./test.png', output_file='./test_compressed.jpg', quality=50 ) `
Discussion
0/2000
Loading comments...
Health Signals
MaintenanceCommitted 2d ago
● ActiveAdoption1K+ stars on GitHub
1.3k ★ · PopularDocsMissing or thin
UndocumentedApache-2.0 License
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Claude Code