Skip to content

About

This library is an extension of TOCropViewController, providing both image and video cropping capabilities for iOS. For videos, it uses AVFoundation to export a new video where each frame is cropped according to the crop rectangle set in the HBCropViewController. This allows precise video cropping while maintaining performance and quality.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

ImageVideoCropper

iOS library extended from TOCropViewController to add the support for the video cropper functionality

✨ Features

  • Crop image
  • Crop Video

📦 Installation

Use Swift Package Manager:

  1. In Xcode, go to File > Add Packages...
  2. Enter this repository URL: https://github.com/harikrishnabista7/ImageVideoCropper

Usage

To crop video

import ImageVideoCropper

let cropper = HBCropViewController(videoURL: videoURL)
cropper.delegate = self
present(cropper, animated: true)

To crop image

import ImageVideoCropper

let cropper = HBCropViewController(image: image)
cropper.delegate = self
present(cropper, animated: true)

Screenshot

Screenshot

About

This library is an extension of TOCropViewController, providing both image and video cropping capabilities for iOS. For videos, it uses AVFoundation to export a new video where each frame is cropped according to the crop rectangle set in the HBCropViewController. This allows precise video cropping while maintaining performance and quality.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages