Image processing

From aipoch/medical-research-skills · View interactive version

Image processing is an AI agent skill from the GitHub repository aipoch/medical-research-skills. Batch-convert and compress local images with Pillow; use when you need an offline, scriptable pipeline for directory-based processing.

How to use this skill

Skill file

Source: https://github.com/aipoch/medical-research-skills

When to Use

Key Features

Dependencies

Example Usage

For additional examples, see references/examples.md.

# 1) Install dependencies
pip install -r scripts/requirements.txt

# 2) Convert all images under <src> to WebP with quality 80, writing to <out>
python scripts/convert_images.py \
  --source-dir "<src>" \
  --output-dir "<out>" \
  --format webp \
  --quality 80

# 3) (Optional) Typical variants (flags may vary by implementation)
# - Enable recursion
# python scripts/convert_images.py --source-dir "<src>" --output-dir "<out>" --format webp --quality 80 --recursive
#
# - Allow overwriting existing outputs
# python scripts/convert_images.py --source-dir "<src>" --output-dir "<out>" --format webp --quality 80 --overwrite

Implementation Details

When Not to Use

Required Inputs

Recommended Workflow

  1. Validate the request against the skill boundary and confirm all required inputs are present.
  2. Select the documented execution path and prefer the simplest supported command or procedure.
  3. Produce the expected output using the documented file format, schema, or narrative structure.
  4. Run a final validation pass for completeness, consistency, and safety before returning the result.

Output Contract

Validation and Safety Rules

Failure Handling

Quick Validation

Run this minimal verification path before full execution when possible:

python scripts/convert_images.py --help

Expected output format:

Result file: image_processing_result.md
Validation summary: PASS/FAIL with brief notes
Assumptions: explicit list if any
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.