Also if you want to scale the image to the specified percentage, the following code will resize the original image only by 50% compared to the original size
And if you want to scale the image to the specified percentage, the following code will resize the original picture was only 50% compared with the original size