All Projects → baronha → react-native-photo-editor

baronha / react-native-photo-editor

Licence: MIT License
🌄 Photo editor using native modules for iOS and Android. Inherit from 2 available libraries, ZLImageEditor (iOS) and PhotoEditor (Android)

Programming Languages

swift
15916 projects
java
68154 projects - #9 most used programming language
kotlin
9241 projects
javascript
184084 projects - #8 most used programming language
objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to react-native-photo-editor

Hxphotopicker
图片/视频选择器 - 支持LivePhoto、GIF图片选择、3DTouch预览、在线下载iCloud上的资源、编辑图片/视频、浏览网络图片 功能 Imitation wx photo/image picker - support for LivePhoto, GIF image selection, 3DTouch preview, Download the resources on iCloud online, browse the web image function
Stars: ✭ 2,363 (+1265.9%)
Mutual labels:  photo, photoedit
PhotoMarker
实现了对图片的标注功能,用户可以添加标注点,并且可以对标注点进行重命名,改变坐标位置,或者删除标注点。以及选择标记点的字体颜色,以及标注点的图标!一系列操作以后可以将编辑过的图片保存至本地相册 (PhotoMarker allows you to take notes on your photos, so that you can make it more expressive. You can add mark points and edit them, change the color of the mark point text, and change the mark point icon. It also allows you to save edited images to…
Stars: ✭ 16 (-90.75%)
Mutual labels:  photo
Perspec
Scriptable desktop app to correct the perspective of images
Stars: ✭ 523 (+202.31%)
Mutual labels:  photo
HXPHPicker
Photo/Video Selector-Supports LivePhoto, GIF selection, online download of resources on iCloud, and editing of photos/videos
Stars: ✭ 228 (+31.79%)
Mutual labels:  photo
nbox
基于阿里云OSS的网盘客户端程序!
Stars: ✭ 31 (-82.08%)
Mutual labels:  photo
google streetview
A command line tool and module for Google Street View Image API
Stars: ✭ 77 (-55.49%)
Mutual labels:  photo
photomosaics
Python program that makes a photo mosaic out of a given image
Stars: ✭ 25 (-85.55%)
Mutual labels:  photo
PyGram
An Instagram-like photo editor in Python
Stars: ✭ 15 (-91.33%)
Mutual labels:  photo
Monotone
An Unsplash Application for iOS.
Stars: ✭ 181 (+4.62%)
Mutual labels:  photo
iCloud-Photo-Downloader
iCloud Photo Downloader - Fetch Originals from iCloud Photo Library
Stars: ✭ 17 (-90.17%)
Mutual labels:  photo
aaf-easyphotomap
📷 Easy Photo Map is a photomap application that displays the location of the photo on the map using the location information included in the photo.
Stars: ✭ 36 (-79.19%)
Mutual labels:  photo
GWLPhotoSelector
相册照片多张选择控件
Stars: ✭ 50 (-71.1%)
Mutual labels:  photo
xGallerify
A lightweight, responsive, smart gallery based on jQuery
Stars: ✭ 52 (-69.94%)
Mutual labels:  photo
editor-ovo
A rich text editor for mobile web. Mixed editing of photos and Emoji 一个适用于移动web的富文本编辑器。照片加emoji的混合编辑
Stars: ✭ 29 (-83.24%)
Mutual labels:  photo
Lassi-Android
All in 1 picker library for android.
Stars: ✭ 108 (-37.57%)
Mutual labels:  photo
dslrbrowser-ios
DSLR Browser iOS app to discover and connect to your Wi-Fi and DLNA enabled (Canon) camera
Stars: ✭ 17 (-90.17%)
Mutual labels:  photo
photoselect
No description or website provided.
Stars: ✭ 39 (-77.46%)
Mutual labels:  photo
zusam
Private groups to share messages, photos, videos, links with friends and family.
Stars: ✭ 79 (-54.34%)
Mutual labels:  photo
JKPhotoBrowser
高仿微信、iOS10 相册的图片浏览器,具备拖拽缩放、渐变效果
Stars: ✭ 16 (-90.75%)
Mutual labels:  photo
trash-classify
Classify trash by tensorflow coco-ssd model in the browser. Take a photo then classify ~~ : )
Stars: ✭ 29 (-83.24%)
Mutual labels:  photo

React Native Photo Editor (RNPE)

🌄 Image editor using native modules for iOS and Android. Inherit from 2 available libraries, ZLImageEditor (iOS) and PhotoEditor (Android)

Note

The difference between the 2 platforms is huge - Be careful when using
This lib is for personal use, so if you customize your style or change something, Please fork this library and check the detailed documentation in the original library:

During the development of this package. I was thinking of moving it as part of an earlier library that I finished. If the support community for this library was large enough, I would have to dismiss this idea immediately.

Previously this library used Brightroom as the native library for iOS. If you want to use Brightroom you can check it out here.

Feature 🙈

Both

  • Draw (Support custom line color).
  • Adding/Editing Text with option to change its Color.
  • Adding Images/Stickers
  • Pinch to Scale and Rotate views.

iOS

  • Apply Filter Effect on image using LUT Color (Custom filter is simpler than android)
  • Crop image.

Android

  • Drawing on image with option to change its Brush's Color, Size, Opacity, Erasing and basic shapes.
  • Apply Filter Effect on image using MediaEffect. But in the future will change to LUT color.

Video Demo 📺

iOS Android
demo.mp4
demo_android.1.mov

ScreenShot 👉👈

iOS


Android

Requirements

  • Swift 5.1+ (Xcode12.4+)
  • iOS 12+

Installation

yarn add @baronha/react-native-photo-editor

iOS

The Swift pod @baronha/react-native-photo-editor depends upon SDWebImage and SDWebImageWebPCoder, which do not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set use_modular_headers! globally in your Podfile, or specify :modular_headers => true for particular dependencies:

pod 'SDWebImage', :modular_headers => true
pod 'SDWebImageWebPCoder', :modular_headers => true

Then run cd ios/ && pod install

Don't forget add file .swift in your project (and create bridging header file swift).

Usage

import PhotoEditor from "@baronha/react-native-photo-editor";

// ...

const result = await PhotoEditor.open(Options);

Options

Property Type Default value Platform Description
path string required both Local/remote image path
stickers Array [] both An array of paths containing sticker images

Filters 🌈

iOS Android

Custom Filters(iOS)

LUT (Hald image)

How to create cube data from LUT Image

We can download the neutral LUT image from lutCreator.js.

Hald Images

Hald is a graphical representation of 3D LUT in a form of a color table which contains all of the color gradations of 3D LUT. If Hald is loaded into editing software and a color correction is applied to it, you can use 3D LUT Creator to convert your Hald into 3D LUT and apply it to a photo or a video in your editor.

Detailed documentations are available on here

IMPORTANT You have to create LUTs.bundle and add all your LUT Photo(Re-name your LUT Photo follow this format: LUT_64_FILTER_NAME) into LUTs.bundle. Then add LUTs.bundle into Copy Bundle Resources. See detail

Stickers 🤌

Remote

You need to pass an array of image urls to the sticker parameter in options Example:

[
  "https://cdn-icons-png.flaticon.com/512/5272/5272912.png",
  "https://cdn-icons-png.flaticon.com/512/5272/5272913.png",
  "https://cdn-icons-png.flaticon.com/512/5272/5272916.png",
  ...
] 

Local

iOS

You have to create Stickers.bundle and add all your sticker into Stickers.bundle. Then add Stickers.bundle into Copy Bundle Resources. See detail

Android

You have to create Stickers folder inside assets folder. Then drag or copy all sticker in to Sticker folder. See detail

To Do

  • Lut Color in android.
  • Crop Image in android.

Performance

We're trying to improve performance. If you have a better solution, please open a issue or pull request. Best regards!

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].