image-resize

image-resize

Resizes an image to specified dimensions. Use when you need to change image size, create thumbnails, or prepare images for specific display requirements.

1スター
0フォーク
更新日 1/21/2026
SKILL.md
readonlyread-only
name
image-resize
description

Resizes an image to specified dimensions. Use when you need to change image size, create thumbnails, or prepare images for specific display requirements.

Image Resize

Resizes an image to a target width or height while optionally maintaining aspect ratio.

Command

agent-media image resize --in <path> [options]

Inputs

Option Required Description
--in Yes Input file path or URL
--width No Target width in pixels
--height No Target height in pixels
--out No Output path, filename or directory (default: ./)
--provider No Provider to use (default: auto-detect)

At least one of --width or --height must be specified.

Output

Returns a JSON object with the resized image path:

{
  "ok": true,
  "media_type": "image",
  "action": "resize",
  "provider": "local",
  "output_path": "resized_123_abc.png",
  "mime": "image/png",
  "bytes": 45678
}

Examples

Resize to 800px width:

agent-media image resize --in photo.jpg --width 800

Resize to exact dimensions:

agent-media image resize --in photo.jpg --width 1024 --height 768

Resize with custom output:

agent-media image resize --in image.png --width 500 --out ./resized

Providers

  • local (default) - Uses sharp library, no API key required

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
入手