Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
cutter
✓ github.com/oliamb/cutter
Crop an image to 50x50 pixels
package main
import (
"image"
"github.com/oliamb/cutter"
)
func main() {
src := image.NewRGBA(image.Rect(0, 0, 100, 100))
cropped, err := cutter.Crop(src, cutter.Config{Width: 50, Height: 50})
if err != nil {
panic(err)
}
_ = cropped
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.2.2latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.