fix(#162): garbage collection fix. split Resize() implementation for Go runtime specific

This commit is contained in:
Tomas Aparicio 2017-09-07 10:41:10 +02:00
parent d4ea64e101
commit 71054aaa89
21 changed files with 586 additions and 558 deletions

10
resize_legacy.go Normal file
View file

@ -0,0 +1,10 @@
// +build !go17
package bimg
// Resize is used to transform a given image as byte buffer
// with the passed options.
// Used as proxy to resizer()
func Resize(buf []byte, o Options) ([]byte, error) {
return resizer(buf, o)
}