Skip to content

Commit

Permalink
Fixed height ratios
Browse files Browse the repository at this point in the history
  • Loading branch information
TheZoraiz committed May 13, 2021
1 parent 47e469a commit 7bf37e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions image_manipulation/image_conversions.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ func ConvertToTerminalSizedSlices(img image.Image, dimensions []int) [][]uint32

smallImg = resize.Resize(uint(terminalWidth), 0, img, resize.Lanczos3)
terminalHeight = smallImg.Bounds().Max.Y

// To fix height ratio
terminalHeight -= terminalHeight / 2
terminalHeight -= terminalHeight / 5

smallImg = resize.Resize(uint(terminalWidth), uint(terminalHeight), img, resize.Lanczos3)

Expand Down

0 comments on commit 7bf37e2

Please sign in to comment.