agentsclimarketplace

Generate batch image resizing script

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/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.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill generate-batch-image-resizing-script

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, 251 tokens by cl100k_base, as published. Nobody here has run it

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

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.