Batch image resize, WebP conversion and EXIF/GPS removal

Shrink a folder of images to a maximum width, convert to WebP or JPEG into a separate folder, remove EXIF data including GPS, and preview everything with a dry run.

ClaudeHermes AgentCodexCursorMIT (modify, redistribute and use commercially)Python

What it does

Makes a batch of images web-ready for a blog or website. Originals are never changed; results go to a separate folder.

  • Shrinks to a maximum width and/or height (never upscales)
  • Converts to WebP, JPEG or PNG with a chosen quality (lossless WebP available)
  • Removes EXIF (date, camera, GPS location), XMP and comments, then reopens each output to confirm nothing is left
  • Applies the camera's rotation before removing EXIF, so portrait photos stay upright
  • A dry run (--dry-run) lists output sizes, file names and which images contain GPS data before anything is written
  • Keeps sub-folder structure, sets a background colour when transparent images become JPEG, writes CSV or JSON reports

How to use

python scripts/batch_resize.py photos/ --out web/ --max-width 1600 --format webp --quality 80 --dry-run
python scripts/batch_resize.py photos/ --out web/ --max-width 1600 --format webp --quality 80 --report report.csv

Ask your agent to make photos blog-ready and strip location data. It confirms the settings, shows the dry run, writes the files once you agree, and reports the size savings and which images had GPS data removed.

Requirements

  • Python 3
  • Pillow (python -m pip install Pillow). If it is missing, the script stops and shows how to install it.

Caveats

  • It cannot remove what is visible in a photo (faces, signs, screens).
  • Animated GIF/WebP files are skipped. HEIC/AVIF are not readable without extra plugins.
  • The ICC colour profile is kept by default so colours do not shift (it contains no personal data).

How to install

  1. Unzip the downloaded file (it contains a image-batch-resize/ folder with SKILL.md).
  2. Copy the whole folder into your agent's skills folder.
    • Claude: ~/.claude/skills/ (per project: .claude/skills/)
    • Hermes Agent: ~/.hermes/skills/
    • Codex: ~/.agents/skills/ / Cursor: ~/.cursor/skills/
    • Claude app (claude.ai): upload the ZIP in Customize → Skills
  3. Restart the agent and check that the skill appears in its skill list.

Step-by-step install for Windows / Mac and each agent

Seller

AI Skill Market (official)

44 published skills

Seller profile and all skills