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.From its SKILL.md
npx -y skills add ECNU-ICALK/AutoSkill --skill batch-image-resizing-with-folder-structure-preservationAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
1.8 KB, 255 tokens by cl100k_base, as published. Nobody here has run it
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
- Input: The script should accept an input directory path.
- Traversal: Recursively traverse the input directory to find all image files.
- Processing: Lower the resolution of each image (e.g., by resizing or thumbnailing).
- Output: Save the processed images to a specified output directory.
- Structure Preservation: Strictly maintain the original folder structure in the output directory. Do not flatten the directory.
- 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
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.