invert-image

Invert image colors while preserving transparency for dark-mode variants.

Updated Feb 8, 2026
One-click install
npx skills add https://github.com/b0ase/path401-com --skill invert-image
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: invert-image
Source: https://github.com/b0ase/path401-com/tree/main/.claude/skills/invert-image
Command: npx skills add https://github.com/b0ase/path401-com --skill invert-image

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Automatically generate dark-mode-ready variants of images by inverting colors while preserving transparency and readability.

Core Features & Use Cases

  • Intelligent color inversion with alpha preservation for PNGs and GIFs.
  • Brightness and saturation adjustments to maintain legibility on dark backgrounds.
  • Output variants are saved next to the source with a -dark suffix for easy integration in docs, Notion pages, and web content.

Quick Start

Run the script with your input image to generate a corresponding -dark variant in the same folder.

Frequently Asked Questions about invert-image

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically create dark mode variants of images for documentation?

To create dark mode variants automatically, this Skill inverts image colors while preserving transparency and metadata. It generates output files with a -dark suffix, making them ready for immediate integration into documentation, Notion, or web pages.

Does batch image inversion preserve PNG transparency and alpha channels?

Batch image inversion fully preserves PNG and GIF transparency by retaining alpha channels during color inversion. The workflow also applies brightness and saturation adjustments to maintain visual legibility on dark backgrounds.

Can I use ImageMagick or Python PIL to invert images with a Bash script?

You can use ImageMagick, GraphicsMagick, sharp, or Python PIL as optional backends within the Bash scripting workflow. These backends process single-image and batch inversions while preserving image quality and metadata.

What is the best way to generate theme-aware images for websites without losing metadata?

The best way to generate theme-aware images is using this Bash-based workflow to invert colors while preserving metadata and transparency. It saves dark mode variants next to the source file, ensuring easy integration for websites.

Why does my inverted image look unreadable on a dark background?

Inverted images can appear unreadable when brightness and saturation are not adjusted for dark backgrounds. This Skill applies intelligent color inversion alongside brightness and saturation tuning to maintain readability.

Do I need GraphicsMagick installed to process dark mode image variants?

You do not need GraphicsMagick specifically, as the Skill supports multiple optional backends including ImageMagick, sharp, or Python PIL. This flexibility allows you to process dark mode image variants using your preferred available tool.