Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/publisher-skill/claude-skill --skill image-processor명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
SOC 직업 분류 기준
| name | image_processor |
| description | 图片处理器 - 批量压缩、格式转换、尺寸调整、加水印 |
| metadata | {"type":"custom"} |
图片批量处理工具,日常办公必备!
from skills.image_processor import ImageProcessor
img = ImageProcessor()
# 检查是否可用
if not img.is_available():
print("请先安装: pip install Pillow")
exit(1)
# 调整尺寸
img.resize_image('input.jpg', 'output.jpg', 800, 600)
# 转换格式
img.convert_format('input.png', 'output.jpg', format='JPEG', quality=85)
# 压缩图片
img.compress_image('input.jpg', 'compressed.jpg', quality=70)
# 添加水印
img.add_watermark('input.jpg', 'output.jpg', 'watermark.png', position='se', opacity=0.5)
# 批量压缩
success, failed = img.batch_process('input_dir', 'output_dir', img.compress_image, quality=75)
resize_image(image_path, output_path, width, height, keep_ratio=True) - 调整尺寸rotate_image(image_path, output_path, angle) - 旋转图片convert_format(image_path, output_path, format='JPEG', quality=85) - 转换格式compress_image(image_path, output_path, quality=75) - 压缩图片add_watermark(image_path, output_path, watermark_path, position='se', opacity=0.5) - 添加水印batch_process(input_dir, output_dir, process_func, file_ext=None, **kwargs) - 批量处理get_info(image_path) - 获取图片信息is_available() - 检查是否可用