Invert colors in images to create negative effect or artistic variations. Use this skill when the user needs to invert image colors.
This skill provides a utility to invert colors in images, creating a negative effect or artistic color variations.
uv run python .claude/skills/image_invert/invert.py <image_path> [options]
Note: For brevity, examples below use invert.py - prepend the full path .claude/skills/image_invert/ when running.
The script will:
_inverted appended to filename (e.g., image_inverted.jpg)-c, --channels - Channels to invert (default: "rgb")
rgb: Invert all channels (standard negative effect)r: Invert only red channelg: Invert only green channelb: Invert only blue channelrg, rb, gb (invert multiple specific channels)-q, --quality - JPEG quality (1-100, default: 95)# Standard color inversion (negative effect)
invert.py image.jpg
# Invert only red channel (artistic effect)
invert.py image.jpg --channels r
# Invert only green channel
invert.py image.jpg --channels g
# Invert red and blue channels
invert.py image.jpg --channels rb
# Invert with custom JPEG quality
invert.py photo.jpg --quality 90
original_inverted.ext (e.g., photo_inverted.jpg)The script will automatically install Pillow if it's not available.