From 618524d8cb67e8ca86873ed1a9cf970794706e55 Mon Sep 17 00:00:00 2001 From: Andrea Maria Piana Date: Wed, 9 Dec 2020 17:51:32 +0100 Subject: [PATCH] debug --- images/manipulation.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/images/manipulation.go b/images/manipulation.go index 1decb6190..2009225b6 100644 --- a/images/manipulation.go +++ b/images/manipulation.go @@ -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) }