Skip to content

Commit

Permalink
Merge pull request gordon-cs#127 from sillsdev/fix-logging
Browse files Browse the repository at this point in the history
Remove some logging from cropping
  • Loading branch information
chrisvire authored Jun 17, 2022
2 parents 01757ae + 94311f5 commit fc8044b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/slideshow/slideshow.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fc8044b

Please sign in to comment.