Drag-n-crop is an image and video cropping utility and a web server written in Rust.
The web server currently has 2 endpoints - one for cropping images and one for cropping videos.
Check out the Swagger documentation hosted here.
Learn more about this project here.
This project has 1 peer dependency - ffmpeg.
In order for the video cropping utility to work, your machine needs to have ffmpeg installed or ffmpeg.exe placed in the root of this project.
File type | Size | Format |
---|---|---|
image | 100MB | jpg, jpeg, png, gif, bmp, webp, svg |
video | 1GB | mp4, mkv, flv, avi, mov, wmv, webm |
(Prerequisite) Install rust.
(Prerequisite) Install ffmpeg or copy ffmpeg executable to the root of this project.
- Clone this repository.
- Run
cargo run
in the root directory. - Navigate to http://127.0.0.1:8000 to see the Swagger documentation.
- version 1.1 ( ??? )
- add support for uploading from URL
- add support for longer videos
- change
crop-video
endpoint to stream its progress instead of blocking the thread
- change
- version 1.0 (Jul 18, 2023)
- crop image
- crop video