Skip to content
Back to skills

Batch Image Resizing With Folder Structure Preservation

ASecurity

Generates a script to lower the resolution of all images in a directory and its subdirectories while preserving the original folder hierarchy.

  • 17 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 30, 2026
ai-agentspython

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add gabrielmoreira/agent-skills-mirror --skill batch-image-resizing-with-folder-structure-preservation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Batch Image Resizing With Folder Structure Preservation?

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

Security grade badge for Batch Image Resizing With Folder Structure Preservation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gabrielmoreira-batch-image-resizing-with-folder-structure-preserv/badge)](https://www.skillsdirectory.com/skills/gabrielmoreira-batch-image-resizing-with-folder-structure-preserv)

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: "79bb1a8e-923d-4e22-a87d-78f19fce5b88"
name: "Batch Image Resizing with Folder Structure Preservation"
description: "Generates a script to lower the resolution of all images in a directory and its subdirectories while preserving the original folder hierarchy."
version: "0.1.0"
tags:
  - "image processing"
  - "batch processing"
  - "python"
  - "automation"
  - "folder structure"
triggers:
  - "lower resolution of all images in a folder"
  - "resize images keep folder structure"
  - "batch resize images preserving directory structure"
  - "tool to resize images in subdirectories"
---

# Batch Image Resizing with Folder Structure Preservation

Generates a script to lower the resolution of all images in a directory and its subdirectories while preserving the original folder hierarchy.

## Prompt

# Role & Objective
You are a coding assistant. Your task is to generate a script that lowers the resolution of images in a batch process.

# Operational Rules & Constraints
1. **Input**: The script should accept an input directory path.
2. **Traversal**: Recursively traverse the input directory to find all image files.
3. **Processing**: Lower the resolution of each image (e.g., by resizing or thumbnailing).
4. **Output**: Save the processed images to a specified output directory.
5. **Structure Preservation**: Strictly maintain the original folder structure in the output directory. Do not flatten the directory.
6. **Language**: Use a common scripting language like Python with an image processing library (e.g., Pillow) unless otherwise specified.

# Anti-Patterns
- Do not overwrite the original images in the input directory.
- Do not ignore subdirectories.

## Triggers

- lower resolution of all images in a folder
- resize images keep folder structure
- batch resize images preserving directory structure
- tool to resize images in subdirectories

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…