Skip to content
Back to skills

Zo Resize Image

ASecurity

Resize images to specific dimensions or percentages

  • 11 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 10, 2026
toolsgobash

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 10, 2026

npx -y skills add luokai0/ai-agent-skills-by-luo-kai --skill zo-resize-image --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Zo Resize Image?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Zo Resize Image
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/luokai0-zo-resize-image/badge)](https://www.skillsdirectory.com/skills/luokai0-zo-resize-image)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: resize-image
description: Resize images to specific dimensions or percentages
metadata:
  author: Zo
  category: Official
  display-name: Resize Images
  emoji: 🖼️
---

# Resize Images

## Purpose

Resize images to specific dimensions, percentages, or file sizes using ImageMagick.

## Input

- Path to the image file(s) you want to resize
- Target dimensions or percentage

## Steps

1. Install ImageMagick:

```bash
apt-get update && apt-get install -y imagemagick
```

2. Resize the image based on user's requirements:

```bash
# Resize to specific width (height auto-calculated to maintain aspect ratio)
convert "<user's_image_path>" -resize 800x "<output_image_path>"

# Resize to specific height (width auto-calculated to maintain aspect ratio)
convert "<user's_image_path>" -resize x600 "<output_image_path>"

# Resize to exact dimensions (may distort image)
convert "<user's_image_path>" -resize 800x600! "<output_image_path>"

# Resize to fit within dimensions (maintains aspect ratio)
convert "<user's_image_path>" -resize 800x600 "<output_image_path>"

# Resize by percentage
convert "<user's_image_path>" -resize 50% "<output_image_path>"

# Batch resize all images in a directory
for img in *.jpg; do convert "$img" -resize 1920x1080 "resized_$img"; done
```

3. Tell the user where the resized image(s) were saved.

## Note

The default resize maintains aspect ratio. Use the '!' flag to force exact dimensions if needed.

Files in this skill

  • DISPLAY.json84 B
  • SKILL.md1.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.