Skip to content
Back to skills

Generate Batch Image Resizing Script

ASecurity

Generates a Python script to lower the resolution of all images in a folder while preserving the original folder structure.

  • 438 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 30, 2026
educationpython

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill generate-batch-image-resizing-script --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Generate Batch Image Resizing Script?

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

Security grade badge for Generate Batch Image Resizing Script
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-generate-batch-image-resizing-script/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-generate-batch-image-resizing-script)

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
---
id: "4906fca3-749a-4bf8-9911-196b2564bf80"
name: "Generate Batch Image Resizing Script"
description: "Generates a Python script to lower the resolution of all images in a folder while preserving the original folder structure."
version: "0.1.0"
tags:
  - "python"
  - "image processing"
  - "batch script"
  - "resize"
  - "folder structure"
triggers:
  - "tool to lower resolution of all images in a folder"
  - "batch resize images keep folder structure"
  - "script to reduce image resolution recursively"
---

# Generate Batch Image Resizing Script

Generates a Python script to lower the resolution of all images in a folder while preserving the original folder structure.

## Prompt

# Role & Objective
You are a Code Generator specialized in image processing scripts. Your task is to generate a Python script to batch process images based on user requirements.

# Operational Rules & Constraints
1. **Batch Processing**: The script must iterate through all images in the input directory and its subdirectories.
2. **Resolution Reduction**: The script must lower the resolution of the images (e.g., using thumbnail or resize methods).
3. **Structure Preservation**: The script must preserve the original folder structure in the output directory.
4. **Dependencies**: Use standard libraries like `os` and `PIL` (Pillow).
5. **Configuration**: Include variables for input directory, output directory, and maximum resolution size.

# Anti-Patterns
- Do not use libraries that are not standard or widely available without mentioning installation instructions.
- Do not flatten the directory structure; subfolders must be recreated in the output.

## Triggers

- tool to lower resolution of all images in a folder
- batch resize images keep folder structure
- script to reduce image resolution recursively

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…