android-icon-processing

Convert raw images into Android adaptive icon foregrounds with edge cleanup and centering.

5|3|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/ZHLX2005/fr --skill android-icon-processing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-icon-processing
Source: https://github.com/ZHLX2005/fr/tree/main/.claude/skills/android-icon-processing
Command: npx skills add https://github.com/ZHLX2005/fr --skill android-icon-processing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pillow, numpy, and includes scripts (resource) components.

What problem does it solve?

This workflow automates turning raw images into a clean Android adaptive icon foreground by performing edge color removal, center-content extraction, saturation-based content filtering, and precise centering/scaling, followed by Android XML configuration.

Core Features & Use Cases

  • Edge block analysis and flood-fill-based edge cleanup to remove unwanted borders.
  • Island/content extraction using color saturation heuristics to keep the main subject.
  • Centering and scaling the content to fit a 1024x1024 canvas at ~40% usage.
  • Android adaptive icon XML preparation and optional launcher icon integration.

Quick Start

Provide your source image and run the provided scripts to generate the Android adaptive icon foreground and fix the launcher XML.

Frequently Asked Questions about android-icon-processing

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

FAQPage Schema
How do I generate an Android adaptive icon foreground from a raw image?

To generate an Android adaptive icon foreground, this workflow removes edge artifacts using flood-fill, extracts the main subject via color saturation, and centers the content on a 1024x1024 canvas. It outputs the prepared foreground image and Android XML configurations.

How does flood-fill edge removal work for Android icon generation?

Flood-fill edge removal analyzes edge blocks of a raw image to identify and delete unwanted borders. This ensures the extracted foreground content for your Android adaptive icon is clean, preventing outer artifacts from interfering with the final launcher icon.

Do I need Python and specific libraries to process adaptive icons?

Yes, you need a Python environment with Pillow and NumPy installed. The icon generation process relies on these libraries to perform image manipulation, saturation-based content extraction, and precise scaling operations.

Can I automatically center and scale image content for Android adaptive icons?

Yes, the scripts automatically center and scale your extracted image content to fit a 1024x1024 canvas at approximately 40% usage. This ensures your foreground subject meets Android adaptive icon visual specifications.

Does this workflow handle Android launcher XML integration?

Yes, after generating the foreground image, the workflow prepares the Android adaptive icon XML and optionally integrates the launcher icon. This connects your processed foreground to the Android app build configuration.