Coder Social home page Coder Social logo

yousanflics / brightroom Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fluidgroup/brightroom

0.0 0.0 0.0 283.67 MB

πŸ“· A composable image editor using Core Image and Metal.

Home Page: https://www.notion.so/muukii/Brightroom-d4c59b37610a49de8a14131d24cd6162

License: MIT License

JavaScript 0.23% Ruby 0.26% Swift 99.49% Makefile 0.02%

brightroom's Introduction

Brightroom

A full-featured composable image editor with a customizable UI -- all backed by the power of Metal.


Image Editor PhotosCropRotating Face Detection Masking

Features

  • Create your own image editor UI by composing components.
    • Components are built separately and run standalone using an EditingStack.
    • EditingStacks manage editing history and render images. It's like a headless browser!
  • Edit and render using P3 Wide Color Gamut
  • Support for Super Large Photosβ„’ (≀ 12000 pixels).
  • Previews and rendering backed with the power of Metal.
  • Create custom-drawn masks on photos.
  • Drop-in support for your own custom filters using LUTs.
  • Load and download remote images for editing with a URL.
  • Support for both UIKit and SwiftUI.

Requirements

iOS Target Xcode Version Swift Version
iOS 15.0+ Xcode 15.2+ Swift 5.9+

Support the Project

Buy me a coffee or support me on GitHub.

yellow-button

πŸŽ‰ v2 Now Available!

There are a few important housekeeping notes for those coming from v1.

  • βš’ Issues are managed in the v2 Project
  • πŸ“Œ Pixel has been renamed Brightroom.
  • πŸ“– Detailed documentation is available on Notion.
  • 🎈 Help Wanted: CoreImage and Metal professionals!
  • ⭐️ If you're interested in v2, star the project to motivate us! 🀠
  • πŸͺ Brightroom's state management is now powered by Verge.

Installation

Swift Package Manager

dependencies: [
    .package(url: "https://github.com/muukii/Brightroom.git", upToNextMajor: "2.2.0")
]

Documentation

View the full documentation on Notion.

Built-In UI

BrightroomUIPhotosCrop.PhotosCropRotation

import SwiftUI
import BtightroomUIPhotosCrop

struct DemoCropView: View {

  @StateObject var editingStack: EditingStack
  @State var resultImage: ResultImage?

  init(
    editingStack: @escaping () -> EditingStack
  ) {
    self._editingStack = .init(wrappedValue: editingStack())
  }

  var body: some View {
    ZStack {

      VStack {
        PhotosCropRotating(editingStack: { editingStack })

        Button("Done") {
          let image = try! editingStack.makeRenderer().render().cgImage
          self.resultImage = .init(cgImage: image)
        }
      }
    }
    .onAppear {
      editingStack.start()
    }
  }

}

ClassicEditor

PixelEditViewController

Demo & Full App

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!

License

Brightroom is available under the MIT license. See the LICENSE file for more info.

Status

FOSSA Status

brightroom's People

Contributors

muukii avatar ntnmrndn avatar aymenworks avatar sam-spencer avatar johnestropia avatar honqii avatar imgbotapp avatar leeceny avatar ss18 avatar andre0805 avatar dependabot[bot] avatar fossabot avatar shima11 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.