360 Secure SkillHub
360 安全技能中心

IG Cropper

该 Skill 提供本地 Python 脚本,利用 Instagram 深色模式背景色 RGB(12, 15, 20) 逐行扫描截图,提取最大连续非背景图像块并另存为纯净照片;依赖 Python 3 与 Pillow,不修复照片内部的水印或图标。

yfxa
yfxa
热度 47.83
最近更新 2026-05-11 17:34:16
分类:效率依赖:代码执行 / 读写文件应用场景:文件转换 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add ig-cropper
Metadata
name
ig-cropper
description
Transforms cluttered Instagram mobile screenshots into clean, distraction-free architectural and design references. Use when you need to automate the extraction of pure imagery from Instagram so that building a visual inspiration archive remains effortless, focused, and aesthetically consistent.

IG Cropper

This skill provides a surgical tool to extract pure photographs from Instagram mobile screenshots (dark mode).

How it Works

Adaptive Extraction: Instagram's dark mode uses a very specific background color: RGB (12, 15, 20). The tool scans the screenshot row by row, identifying the interface elements by this color signature and isolating the largest continuous block of non-background imagery—the photograph itself. It extracts this frame flawlessly, regardless of how much the user has scrolled.

Usage

Run the Python script directly on any Instagram screenshot:

python3 scripts/ig_crop.py input_screenshot.png output_pure_photo.png

Philosophy

This tool intentionally does not attempt to algorithmically paint over watermarks or icons located inside the photograph (like pagination numbers or tagged-people indicators). We leave the integrity of the architectural textures untouched, delegating complex restorations to professional generative tools or manual human craftsmanship.

Dependencies

  • Python 3
  • Pillow (pip install pillow)