From 5d8f51ac66fd2a4ab10c5c156da13e075f6d4b3c Mon Sep 17 00:00:00 2001 From: Antoni Sawicki Date: Thu, 30 May 2019 18:10:52 -0700 Subject: [PATCH] width height and scale go to area target --- wrp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrp.go b/wrp.go index 4e7d5a7..aaf31c3 100644 --- a/wrp.go +++ b/wrp.go @@ -58,7 +58,7 @@ func pageServer(out http.ResponseWriter, r *http.Request) { fmt.Fprintf(out, "

\n") fmt.Fprintf(out, "Width: \n", w) fmt.Fprintf(out, "Height: \n", h) - fmt.Fprintf(out, "Scale: \n", s) + fmt.Fprintf(out, "Scale: \n", s) fmt.Fprintf(out, "

") if len(u) > 4 { capture(u, w, h, s, out) @@ -139,7 +139,7 @@ func capture(gourl string, w int64, h int64, s float64, out http.ResponseWriter) if err != nil { continue } - target := fmt.Sprintf("/?url=%s", tgt) + target := fmt.Sprintf("/?url=%s&w=%d&h=%d&s=%1.2f", tgt, w, h, s) if len(b.Content) > 6 && len(target) > 7 { fmt.Fprintf(out, "\"%s\"\n",