Made HQ images black bar removal a bit better
All checks were successful
Build Docker images / acls (push) Successful in 1m23s
All checks were successful
Build Docker images / acls (push) Successful in 1m23s
This commit is contained in:
4
main.go
4
main.go
@@ -68,7 +68,9 @@ func getYouTubeThumbnail(writer http.ResponseWriter, request *http.Request) {
|
||||
fmt.Println("Youtube thumbnail horizontal")
|
||||
fmt.Println("Ideal size")
|
||||
fmt.Print(imageHq.Bounds().Max.X, ", ")
|
||||
idealHeight := imageMqBounds.Max.Y * 100 / (imageMqBounds.Max.X * 100 / imageHqBounds.Max.X)
|
||||
idealHeight := imageMqBounds.Max.Y * 100 /
|
||||
(imageMqBounds.Max.X * 100 / imageHqBounds.Max.X)
|
||||
idealHeight -= 4
|
||||
fmt.Println(idealHeight)
|
||||
|
||||
newImage := image.NewRGBA64(image.Rectangle{
|
||||
|
Reference in New Issue
Block a user