From 4f70304c9f8234942c92e3d5c8cc02825bb04df2 Mon Sep 17 00:00:00 2001 From: Steven Polley Date: Wed, 1 Aug 2018 22:53:45 -0600 Subject: [PATCH] remove label --- render.go | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/render.go b/render.go index ce71a6c..4f225e8 100644 --- a/render.go +++ b/render.go @@ -8,7 +8,6 @@ import ( "log" "math" "math/cmplx" - "net" "net/http" "runtime" "strconv" @@ -16,9 +15,6 @@ import ( "sync" "deadbeef.codes/steven/mandelmapper/palette" - "golang.org/x/image/font" - "golang.org/x/image/font/basicfont" - "golang.org/x/image/math/fixed" ) const ( @@ -119,11 +115,11 @@ func renderTile(w http.ResponseWriter, r *http.Request) { } wg.Wait() - - ip := GetOutboundIP() - - addLabel(img, 20, 30, fmt.Sprintf("rendered by \n%s", ip.String())) - //addLabel(img, 20, 30, fmt.Sprintf("%s/%s/%s.png", components[1], components[2], components[3])) + /* + //ip := GetOutboundIP() + //addLabel(img, 20, 30, fmt.Sprintf("rendered by \n%s", ip.String())) + //addLabel(img, 20, 30, fmt.Sprintf("%s/%s/%s.png", components[1], components[2], components[3])) + */ w.Header().Set("Content-Type", "image/png") png.Encode(w, img) } @@ -202,7 +198,7 @@ func linearInterpolation(c1, c2, mu uint32) uint32 { } //Adds a text label to an image - +/* func addLabel(img *image.RGBA, x, y int, label string) { col := color.RGBA{255, 255, 255, 255} point := fixed.Point26_6{fixed.Int26_6(x * 64), fixed.Int26_6(y * 64)} @@ -227,3 +223,4 @@ func GetOutboundIP() net.IP { return localAddr.IP } +*/