360 Secure SkillHub
360 安全技能中心

Photo Cinematic Editor

该 Skill 提供本地命令行照片处理脚本,支持去雾、电影感调色、饱和度/自然饱和度/色阶调整、光线、锐化与模糊等效果,并可组合成处理管线。输入支持 HEIC/JPEG/PNG,输出为处理后的图片;依赖 Pillow、NumPy 和 pillow-heif,具体参数与工作流详见参考文档。

akira362680164
akira362680164
热度 29.26
最近更新 2026-05-11 17:47:47
分类:创作依赖:代码执行 / 读写文件应用场景:图像生成 / 自动化脚本 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add photo-cinematic
Metadata
name
photo-cinematic
description
Professional photo processing and cinematic color grading powered by Pillow + NumPy. Use when a user asks to: (1) Edit, enhance, or retouch photos, (2) Apply cinematic/film color grading, (3) Remove haze or improve clarity, (4) Adjust saturation, vibrance, or exposure, (5) Add light effects, vignette, or film grain. Triggers on keywords like: 调色/修图/照片处理/电影感/通透/去雾/饱和度/自然饱和度/色阶。

Photo Cinematic Editor

Cinematic photo processing toolkit with Pillow + NumPy. Supports HEIC/JPEG/PNG input.

Quick Start

# All-in-one cinematic processing (dehaze → grade → light → sharpen)
python3 scripts/photo_editor.py input.jpg output.jpg

# Custom pipeline
python3 scripts/photo_editor.py input.jpg output.jpg dehaze grade saturation=1.3 light sharpen

Effects Reference

Effect Params Description
dehaze strength=1.0 Local contrast dehazing + clarity
grade strength=1.0 Cinematic S-curve + teal/orange split tone + glow + vignette
saturation saturation=1.0 Simple saturation multiplier
vibrance vibrance=1.0 Smart saturation (boosts muted colors more)
levels shadows=0 midtones=1.0 highlights=255 Photoshop-style levels adjustment
light strength=1.0 Warm light streaks + highlight boost
sharpen strength=1.0 Unsharp mask sharpening
blur strength=1.0 Gaussian blur (radius in pixels)

All params accept strength=N to control intensity.

Usage Examples

# Dehaze only
python3 scripts/photo_editor.py photo.jpg out.jpg dehaze

# Cinematic from scratch
python3 scripts/photo_editor.py photo.jpg out.jpg grade

# Vibrant cinematic
python3 scripts/photo_editor.py photo.jpg out.jpg dehaze grade saturation=1.2 light sharpen

# Soft natural look
python3 scripts/photo_editor.py photo.jpg out.jpg dehaze grade vibrance=0.85 light=0.6 sharpen

# Manual levels adjustment
python3 scripts/photo_editor.py photo.jpg out.jpg levels shadows=15 midtones=1.1 highlights=240 sharpen

Requirements

pip3 install Pillow numpy pillow-heif --break-system-packages

Scripts

  • scripts/photo_editor.py — Main editor with pipeline processing
  • scripts/cinematic_grade.py — V1 classic cinematic grading
  • scripts/cinematic_v2.py — V2 with dehaze + light texture

References

See references/photo-editing-guide.md for technique explanations and advanced workflows.