image-processing

image-processing

Process, transform, and analyze images using common operations

1Star
0Fork
更新于 1/5/2026
SKILL.md
readonly只读
name
image-processing
description

Process, transform, and analyze images using common operations

Image Processing

Process and transform images.

Capabilities

  • Resize and crop images
  • Apply filters and adjustments
  • Convert between formats
  • Extract metadata and analyze content

Common Operations

Resize

from PIL import Image

img = Image.open("input.jpg")
img_resized = img.resize((800, 600), Image.LANCZOS)
img_resized.save("output.jpg")

Crop

# Crop box: (left, upper, right, lower)
img_cropped = img.crop((100, 100, 500, 400))

Format Conversion

img = Image.open("input.png")
img.convert("RGB").save("output.jpg", quality=85)

Filters

Filter Use Case
Blur Reduce noise, privacy
Sharpen Enhance details
Grayscale Simplify, reduce size
Contrast Improve visibility

Supported Formats

  • Input: JPEG, PNG, GIF, WebP, BMP, TIFF
  • Output: JPEG, PNG, WebP

Best Practices

  1. Preserve aspect ratio when resizing
  2. Use appropriate quality settings (JPEG: 80-90)
  3. Strip metadata for privacy if needed
  4. Consider WebP for web delivery (smaller size)

Metadata Extraction

from PIL.ExifTags import TAGS

exif = img._getexif()
for tag_id, value in exif.items():
    tag = TAGS.get(tag_id, tag_id)
    print(f"{tag}: {value}")

You Might Also Like

Related Skills

songsee

songsee

88Kdesign

Generate spectrograms and feature-panel visualizations from audio with the songsee CLI.

moltbot avatarmoltbot
获取

Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."

anthropics avataranthropics
获取

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.

anthropics avataranthropics
获取

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

anthropics avataranthropics
获取
theme-factory

theme-factory

47Kdesign

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

anthropics avataranthropics
获取
canvas-design

canvas-design

47Kdesign

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

anthropics avataranthropics
获取