resize icon indicating copy to clipboard operation
resize copied to clipboard

I'm no longer updating this package.

Open nfnt opened this issue 7 years ago • 6 comments

As it may have been apparent by my long reaction time to PRs and issues, I haven't spend too much time working on this package in the last years. And I plan to keep it that way, hence I won't really look at PRs and issues anymore. Take a look at x/image/draw or gopkg.in/gographics/imagick.v2/imagick for packages that offer image resizing and much more.

nfnt avatar Feb 21 '18 19:02 nfnt

Thanks for everything, it just work for me ! I hope somebody will continue to maintain it... Maybe you could tag it to make it friendly with vgo ? It can also help for an eventual fork.

flibustenet avatar Feb 25 '18 18:02 flibustenet

Thx.

zeusro avatar May 04 '18 09:05 zeusro

Why not open it up to the community?

ernsheong avatar Jan 29 '19 13:01 ernsheong

@nfnt thanks for your time, it's an awesome tool :smile: it's a pitty see you go

ealipio avatar May 31 '19 22:05 ealipio

A candidate for https://github.com/gofrs see https://github.com/gofrs/help-requests/issues/3

ernsheong avatar Jun 01 '19 02:06 ernsheong

As i had trouble finding examples using golang.org/x/image/draw to scale an image i cobbled together this basic example:

// Scale will use the provided scaler to resize src to the bounds in rect
// It will always return an RGBA image
func Scale(src image.Image, rect image.Rectangle, scale draw.Scaler) image.Image {
	dst := image.NewRGBA(rect)
	scale.Scale(dst, rect, src, src.Bounds(), draw.Over, nil)
	return dst
}

Usage:

scaled := Scale(src, image.Rect(0, 0, 200, 200), draw.ApproxBiLinear)

full credit goes to this gist https://gist.github.com/logrusorgru/570d64fd6a051e0441014387b89286ca

bigtallbill avatar Oct 10 '19 18:10 bigtallbill