id-photo-tool
Replace an ID photo background color (blue/white/red) and/or add a configurable text watermark when you need compliant ID-photo variants from local JPG/PNG files.
Install / Use
npx skills add aipoch/medical-research-skills --skill id-photo-toolInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Education & ResearchSupported Platforms
Our assessment of id-photo-tool
id-photo-tool scores 89/100 on our quality scale, 134th of 331 Education & Research skills we index (top 41%).
Its SKILL.md is 3.2 KB long, well organised into 8 sections with 4 code examples: a solid amount of guidance for an agent.
With 1,916 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 12 days ago, so id-photo-tool is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
id-photo-tool compared with similar skills
All 4 of these similar skills score higher than id-photo-tool; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| id-photo-tool (this skill)by aipoch | 89 | 1.9k | 12d ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 86.2k | 14d ago | CLAUDE.md |
| last30days-skillby mvanhorn | 100 | 63.2k | today | CLAUDE.md |
| algorithmic-artby anthropics | 100 | 177.9k | 7d ago | SKILL.md |
| pptxby anthropics | 100 | 177.9k | 7d ago | SKILL.md |
Frequently asked questions
- How do I install id-photo-tool?
- Run
npx skills add aipoch/medical-research-skills --skill id-photo-tool. The install tabs above show the steps for each supported agent. - Which AI agents does id-photo-tool work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is id-photo-tool safe to use?
- It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is id-photo-tool still maintained?
- The repository was last updated 12 days ago, so id-photo-tool is actively maintained.
Skill content
View source on GitHubname: id-photo-tool description: Replace an ID photo background color (blue/white/red) and/or add a configurable text watermark when you need compliant ID-photo variants from local JPG/PNG files. license: MIT author: AIPOCH
When to Use
- You need to convert an ID photo background to a required solid color (blue/white/red) for official submissions.
- You need to add a visible “for application only” style watermark to prevent misuse of shared ID photos.
- You need to batch-generate multiple variants while keeping the original image unchanged (explicit output path).
- You need an offline, local-only tool (no network access) for processing sensitive personal images.
Key Features
- Background color replacement for ID photos:
- Supported target colors:
blue,white,red - Detects the dominant background color using edge pixels and replaces it using color-distance matching
- Supported target colors:
- Text watermark overlay:
- Supported positions: top-left, top-right, bottom-left, bottom-right, center
- Configurable opacity, font size, and font color
- Input/output constraints:
- Supports
JPGandPNGonly - Output keeps the same format as the input
- Does not overwrite the original file (output path must be provided)
- Supports
- Local processing only:
- Reads only from user-provided input paths and writes only to user-provided output paths
Dependencies
- Python 3.x
- pillow (PIL) — version not pinned
- numpy — version not pinned
Install:
python -m pip install pillow numpy
Example Usage
Background color replacement (JPG):
python scripts/id_photo_tool.py change-bg \
--input input.jpg \
--output output.jpg \
--color blue
Background color replacement (PNG):
python scripts/id_photo_tool.py change-bg \
--input input.png \
--output output.png \
--color white
Add a text watermark:
python scripts/id_photo_tool.py add-watermark \
--input input.jpg \
--output watermarked.jpg \
--text "For application use only"
Implementation Details
Background Color Replacement
- Background sampling: The tool estimates the original background color by sampling pixels along the image edges (where background is most likely present).
- Color-distance based replacement: Pixels close to the estimated background color (by color distance) are treated as background and replaced with the selected target color.
- Supported target colors:
bluewhitered
Text Watermark
- Placement: One of five positions is supported: top-left, top-right, bottom-left, bottom-right, center.
- Rendering parameters:
- Opacity controls watermark transparency.
- Font size controls text scale.
- Font color controls text color.
- Output behavior: The watermark is composited onto the image and saved to the specified output path without modifying the original input file.
Security / Compliance Notes
- No network access is used; all processing is performed locally.
- The script only accesses file paths explicitly provided via CLI arguments.
- The tool requires an explicit output path and does not overwrite the original file by default.
Related Skills
Agent-Reach
86.2kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
last30days-skill
63.2kAI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
pptx
177.9kUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an em…
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
