agentsclimarketplace

Batch image resizing with folder structure preservation

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8/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

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill batch-image-resizing-with-folder-structure-preservation

Assembled 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

  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

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.