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.
Start a fresh conversation. Replace the highlighted placeholders.
Use id-photo-tool to create a [blue/white/red] background ID-photo variant from [input JPG/PNG] at [output path], preserving the original file; optionally add the text “For application use only” as a watermark.
Required inputs
[blue/white/red]
[input JPG/PNG]
[output path]
User-approved starter prompt based on a pinned source version; check current skill requirements before running. Task evidence ↗
SKILL.md
name: id-photo-tooldescription: 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: MITauthor: AIPOCH
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:
blue
white
red
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.