From 94311f5d8204396f9af0264e5a0e12dbb97d2102 Mon Sep 17 00:00:00 2001 From: Chris Hubbard Date: Fri, 17 Jun 2022 09:10:12 -0400 Subject: [PATCH] Remove some logging from cropping --- src/slideshow/slideshow.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/slideshow/slideshow.go b/src/slideshow/slideshow.go index d288e00..dac1b2f 100644 --- a/src/slideshow/slideshow.go +++ b/src/slideshow/slideshow.go @@ -152,15 +152,12 @@ func enlargeBoundsToAspectRatio(input Image.Rectangle, targetRatio float64) Imag height := input.Dy() if math.Abs(curRatio-targetRatio) < 0.01 { // Current rect is fine - fmt.Println("No Change") return input } else if curRatio < targetRatio { // Change width - fmt.Println("Change width") width = int(math.Round(float64(height) * targetRatio)) } else { // Change height - fmt.Println("Change height") height = int(math.Round(float64(width) / targetRatio)) } return Image.Rect(input.Min.X, input.Min.Y, width, height)