Package gift provides a set of useful image processing filters.

Basic usage:

// 1. Create a new GIFT and add some filters:

g := gift.New(
    gift.Resize(800, 0, gift.LanczosResampling),
    gift.UnsharpMask(1.0, 1.0, 0.0),

// 2. Create a new image of the corresponding size.
// dst is a new target image, src is the original image

dst := image.NewRGBA(g.Bounds(src.Bounds()))

// 3. Use Draw func to apply the filters to src and store the result in dst:

g.Draw(dst, src)

gift is referenced in 24 repositories