debug
This commit is contained in:
parent
69de77c36a
commit
618524d8cb
|
@ -6,6 +6,8 @@ import (
|
|||
|
||||
"github.com/nfnt/resize"
|
||||
"github.com/oliamb/cutter"
|
||||
|
||||
"github.com/ethereum/go-ethereum/log"
|
||||
)
|
||||
|
||||
func Resize(size ResizeDimension, img image.Image) image.Image {
|
||||
|
@ -20,6 +22,8 @@ func Resize(size ResizeDimension, img image.Image) image.Image {
|
|||
width, height = uint(size), 0
|
||||
}
|
||||
|
||||
log.Info("resizing", "size", size, "width", width, "height", height, "img", img)
|
||||
|
||||
return resize.Resize(width, height, img, resize.Bilinear)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue