All Projects → HHK1 → Prynttrimmerview

HHK1 / Prynttrimmerview

Licence: mit
A set of tools to trim, crop and select frames inside a video

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Prynttrimmerview

Mantis
A photo cropping tool which mimics Photo.app written by Swift.
Stars: ✭ 270 (-51.18%)
Mutual labels:  crop, cropping
Svelte Easy Crop
A Svelte component to crop images with easy interactions
Stars: ✭ 80 (-85.53%)
Mutual labels:  crop, cropping
Alloycrop
The best and tiny size mobile cropping component - 做最好且最小的移动裁剪组件
Stars: ✭ 907 (+64.01%)
Mutual labels:  crop, cropping
Tocropviewcontroller
A view controller for iOS that allows users to crop portions of UIImage objects
Stars: ✭ 4,210 (+661.3%)
Mutual labels:  crop, cropping
Android Imagecropview
android image crop library
Stars: ✭ 225 (-59.31%)
Mutual labels:  crop, cropping
Pixelsdk
The modern photo and video editor for your iPhone / iPad app. A fully customizable image & video editing iOS Swift framework.
Stars: ✭ 192 (-65.28%)
Mutual labels:  crop, cropping
React Easy Crop
A React component to crop images/videos with easy interactions
Stars: ✭ 1,093 (+97.65%)
Mutual labels:  crop, cropping
react-native-avatar-crop
Highly customisable <Crop /> component for React Native < 💅 >
Stars: ✭ 47 (-91.5%)
Mutual labels:  crop, cropping
Igrphototweaks
Drag, Rotate, Scale and Crop
Stars: ✭ 212 (-61.66%)
Mutual labels:  crop, cropping
Rskimagecropper
An image cropper / photo cropper for iOS like in the Contacts app with support for landscape orientation.
Stars: ✭ 2,371 (+328.75%)
Mutual labels:  crop, cropping
mpv-scripts
dynamic-crop.lua script for mpv player/lib.
Stars: ✭ 43 (-92.22%)
Mutual labels:  crop, cropping
React Native Image Crop Picker
iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping
Stars: ✭ 5,261 (+851.36%)
Mutual labels:  crop, cropping
Croppr.js
A vanilla JavaScript image cropper that's lightweight, awesome, and has absolutely zero dependencies.
Stars: ✭ 294 (-46.84%)
Mutual labels:  crop
Laravel Image
Image manipulation library for Laravel 4 and 5 based on Imagine (https://github.com/avalanche123/Imagine) and inspired by Croppa for easy url based manipulation (with caching)
Stars: ✭ 276 (-50.09%)
Mutual labels:  crop
Painterro
Painterro - JavaScript painting plugin
Stars: ✭ 496 (-10.31%)
Mutual labels:  crop
1click Webpage Screenshot
Entire page Screenshot extension for Google Chrome. I'm developing open source extension for Google Chrome. All extension are free for use. Let's make Chrome great again!
Stars: ✭ 406 (-26.58%)
Mutual labels:  crop
Photoflare
Quick, simple but powerful Cross Platform image editor.
Stars: ✭ 260 (-52.98%)
Mutual labels:  crop
Pdftilecut
pdftilecut lets you sub-divide a PDF page(s) into smaller pages so you can print them on small form printers.
Stars: ✭ 258 (-53.35%)
Mutual labels:  crop
ngx-img
No description or website provided.
Stars: ✭ 25 (-95.48%)
Mutual labels:  crop
Dragscalecircleview
a custom view that provides dragged and scaled
Stars: ✭ 513 (-7.23%)
Mutual labels:  crop

PryntTrimmerView

codebeat badge Platform License Version Carthage compatible Swift Package Manager

A set of tools written in swift to crop and trim videos.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Trimming

Cropping

Requirements

PryntTrimmerView requires iOS9: It uses Layout Anchors to define the constraints.

Installation

SPM

Add the following to your Package.swift file

dependencies: [
    .package(url: "https://github.com/HHK1/PryntTrimmerView.git", .upToNextMajor(from: "4.0.1"))
]

CocoaPods

PryntTrimmerView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "PryntTrimmerView"

Then, run pod install to download the source and add it to your workspace.

Carthage

PryntTrimmmerView is available through Carthage. To install it, simply add the following line to your Cartfile:

github "HHK1/PryntTrimmerView"

Run carthage update to build the framework and drag the built PryntTrimmerView.framework into your Xcode project.

Swift Version

  • Swift 3 compatibility: use version 1.0.1 or below.
  • Swift 4 compatibility: use version 2.x.x.
  • Swift 4.2 compatibility: use version 3.x.x

Usage

⚠️ This library does not contain an API to crop or trim your video asset. You can find a possible implementation for this in the example pod, but the library only provides the UI.

Trimming

Create a TrimmerView instance (in interface builder or through code), and add it to your view hierarchy.

trimmerView.asset = asset
trimmerView.delegate = self

Access the startTime and endTime property to know where to trim your asset. You can use the TrimmerViewDelegate to link the trimmer with an AVPlayer and provide the end user with a preview. See the VideoTrimmerViewController inside the project to see an example.

You can also customize the trimmer view by changing its colors:

trimmerView.handleColor = UIColor.white
trimmerView.mainColor = UIColor.orange
trimmerView.positionBarColor = UIColor.white

Cropping

Create an instance of the VideoCropView and add it to your view hierarchy, then load your video into the crop view: videoCropView.asset = asset.

You can set the aspect ratio you want using the setAspectRatio method. Once you are satisfied with the portion of the asset you want to crop, call getImageCropFrame to retrieve the select frame. See the VideoCropperViewController in the example app for an actual example of how to crop the video for export.

License

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

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].