A full-featured composable image editor with a customizable UI -- all backed by the power of Metal.
Image Editor | Photo Cropping | Face Detection | Masking |
---|---|---|---|
![]() |
<img style="max-width:100%;" width=200px src=https://user-images.githubusercontent.com/1888355/112720381-4ea4c700-8f41-11eb-8ec3-2446518ded1b.gif?raw=true /> | <img style="max-width:100%;" width=200px src=https://user-images.githubusercontent.com/1888355/112720303-cde5cb00-8f40-11eb-941f-c134368b87c5.gif?raw=true /> | <img style="max-width:100%;" width=200px src=https://user-images.githubusercontent.com/1888355/112927084-6487d700-914f-11eb-86a5-28f9373285e6.gif?raw=true /> |
EditingStack
.EditingStacks
manage editing history and render images. It's like a headless browser!URL
.iOS Target | Xcode Version | Swift Version |
---|---|---|
iOS 12.0+ | Xcode 12.4+ | Swift 5.3+ |
Buy me a coffee or support me on GitHub.
There are a few important housekeeping notes for those coming from v1.
Swift Package Manager
dependencies: [
.package(url: "https://github.com/muukii/Brightroom.git", upToNextMajor: "2.2.0")
]
View the full documentation on Notion.
PhotosCropViewController
// Create an image provider
let imageProvider = ImageProvider(image: uiImage) // URL, Data are also supported.
// Create a Photo Crop View Controller
let controller = PhotosCropViewController(imageProvider: imageProvider)
// Set up handlers when editing finishes
controller.handers
The SwiftUI API is still in-progress and may not be production ready. We're looking for help! π€²
let editingStack: EditingStack
SwiftUIPhotosCropView(editingStack: editingStack) {
let image = try! editingStack.makeRenderer().render().swiftUIImage
}
There is an entire open-source and production-ready app available on the App Store that uses Brightroom. It's called Drip.
This repository also contains a demo app which demonstrates what Brightroom can perform and showcases some easy experiments. Clone this repo and build the project to try it out!
Brightroom is available under the MIT license. See the LICENSE file for more info.
link |
Stars: 3056 |
Last commit: 1 week ago |
Full Changelog: https://github.com/FluidGroup/Brightroom/compare/2.10.0...2.10.1
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics