mirror of
https://github.com/nxshock/colorcrop.git
synced 2025-07-02 00:23:44 +05:00
Upload code
This commit is contained in:
parent
b055be1d8e
commit
602c4b0993
6 changed files with 227 additions and 1 deletions
18
README.md
18
README.md
|
@ -1 +1,17 @@
|
|||
# colorcrop
|
||||
# colorcrop
|
||||
|
||||
Go library for cropping images by removing borders with specified color.
|
||||
|
||||
## Installation
|
||||
|
||||
`go get -u github.com/nxshock/colorcrop`
|
||||
|
||||
## Usage
|
||||
|
||||
Crop white borders with 50% of thresold:
|
||||
|
||||
`croppedImage := colorcrop.Crop(sourceImage, color.RGBA{255, 255, 255, 255}, 0.5)`
|
||||
|
||||
## Examples
|
||||
|
||||
See in "examples".
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue