跳到正文
TakoAPI
返回技能列表

image-utils

由 galbria 提供

Web & Frontend Development
995下载量由 clawskills.sh 提供
3星标
1浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Classic image manipulation with Python Pillow - resize, crop, composite, format conversion, watermarks.

描述

该技能的功能

Pillow-based image processing utilities covering resize, crop, composite, format conversion, watermarks, brightness/contrast adjustments, and web optimization. Works with local files, URLs, bytes, or base64 input. Can be used standalone or as a post-processing step after AI image generation.

Handles the full image pipeline from loading to export in one consistent API rather than stringing together separate tools for each operation.

何时使用

  • Batch-resizing a product image catalog to multiple sizes for a webstore
  • Cropping AI-generated images to 1:1 or 16:9 for social media platforms
  • Adding a logo watermark to hundreds of images before publishing
  • Converting PNG screenshots to optimized WebP for faster page loads
  • Compositing a cutout subject onto a new background image

示例工作流

输入

User asks: resize all JPEGs in ./raw to 800px wide, add a watermark, and save as WebP

智能体
  1. 1

    Iterates over all .jpg files in ./raw using Path.glob

  2. 2

    Loads each image with ImageUtils.load

  3. 3

    Resizes to width=800 with maintain_aspect=True

  4. 4

    Applies text watermark at bottom-right with add_text_watermark

  5. 5

    Saves each result as .webp with quality=85 via ImageUtils.save

输出

Processed WebP files written to ./output, each resized and watermarked

安装

clawhub install galbria/image-utils

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接