Golang how can I multiply a integer and a float
If you want to multiply floats, you need to convert the number to a float:
height := int(float64(heightImg) * a)
width := int(float64(widthImg) * a)
If you want to multiply floats, you need to convert the number to a float:
height := int(float64(heightImg) * a)
width := int(float64(widthImg) * a)