Skip to content

An easy to use image cropping library built on top of imaging.

License

Notifications You must be signed in to change notification settings

stevenferrer/croptop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Croptop Github Actions Coverage Status Go Report Card

An easy to use image cropping library built on top of imaging. This package is just a wrapper to imaging.

Installation

$ go get github.com/stevenferrer/croptop

Example

  1. Decode image from a reader.
img, err := croptop.Decode(r)
// handle error
  1. Specify crop options and encode to a writer.
err = img.Height(height).Width(width).
    OffsetX(offsetX).OffsetY(offsetY).
    Crop().Encode(w)
// handle error

License

MIT

About

An easy to use image cropping library built on top of imaging.

Topics

Resources

License

Stars

Watchers

Forks

Languages