mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-16 19:05:54 -07:00
fix(#162): garbage collection fix. split Resize() implementation for Go runtime specific
This commit is contained in:
parent
d4ea64e101
commit
71054aaa89
21 changed files with 586 additions and 558 deletions
10
resize_legacy.go
Normal file
10
resize_legacy.go
Normal 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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue