LightRoom
Easy Chaining ImageFilter with CoreImage 📸
Install / Use
/learn @muukii/LightRoomREADME
LightRoom
Easy Chaining ImageFilter with CoreImage
My App Fil is powered by LightRoom.
Installation
LightRoom is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "LightRoom"
Usage
First, create FilterComponents.
Then create a FilterChain using them.
Chaining
image1 >>> colorControl --* addition
blendImage >>> addition --* overlay
image2 >>> colorControl2 >>> overlay

Multiple Chaining
You can connect FilterChains with each other using >>>
let colorControl = LightRoom.ColorAdjustment.ExposureAdjust(ev: 1)
let chain1 = FilterChain { (image: CIImage?) -> CIImage? in
image >>> colorControl
return colorControl.outputImage
}
let colorControl2 = LightRoom.ColorAdjustment.ColorControls(saturation: 0.3, brightness: 0, contrast: 1)
let chain2 = FilterChain { (image: CIImage?) -> CIImage? in
image >>> colorControl2
return colorControl2.outputImage
}
image1 >>> chain1 >>> chain2
chain2.outputImage

Performance
FilterComponent has a CIFilter, which is cached and will be created only once.
This structure is advantageous in performance, and is great for real-time filtering camera implementation.
Related Skills
node-connect
351.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
